forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request universal-ctags#1757 from masatake/readtags--handl…
…ing-broken-input readtags: handle broken input patterns
- Loading branch information
Showing
6 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
# Copyright: 2018 Masatake YAMATO | ||
# License: GPL-2 | ||
|
||
READTAGS=$3 | ||
#V="valgrind --leak-check=full --track-origins=yes -v" | ||
V= | ||
|
||
. ../utils.sh | ||
|
||
if ! [ -x "${READTAGS}" ]; then | ||
skip "no readtags" | ||
fi | ||
|
||
for i in 1 2 3 4 5 6; do | ||
${V} ${READTAGS} -t ./target.tags - greet${i} > /dev/null || exit 1 | ||
done | ||
|
||
${READTAGS} -t ./target.tags - greetA | ||
${READTAGS} -t ./target.tags - greetB |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
greetA input.java /^ public void greet (String word) {$/ | ||
greetB input.java ?^ public void greet (String word) {$? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
greet1 input.java /^ public void greet (String word) {$;" m line:9 method:input.hello.anonXXX | ||
greetA input.java /^ public void greet (String word) {$/;" m line:9 method:input.hello.anonXXX | ||
greet2 input.java k:v | ||
greet3 input.java | ||
greet4 input.java | ||
greet5 | ||
greetB input.java ?^ public void greet (String word) {$?;" m line:9 method:input.hello.anonXXX | ||
greet6 input.java ?^ public void greet (String word) {$;" m line:9 method:input.hello.anonXXX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters