-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
393 additions
and
41 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
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
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
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
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,25 @@ | ||
# Copyright: 2018 Masatake YAMATO | ||
# License: GPL-2 | ||
|
||
CTAGS="$1 --quiet --options=NONE" | ||
|
||
. ../utils.sh | ||
|
||
echo2 param: '|(.)|\1|^ => ignoring' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|^' --list-kinds-full=x | ||
# In this case, ctags ignores the substring after the last '|'. | ||
# It is evaluated as flags. | ||
|
||
echo2 param: '|(.)|\1|^| => warning' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|^|' --list-kinds-full=x | ||
# In this case, ctags warns specifying a wrong kind letter '^'. | ||
|
||
echo2 param: '|(.)|\1|, => ignoring' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|,' --list-kinds-full=x | ||
# In this case, ctags ignores the substring after the last '|'. | ||
# It is evaluated as flags. | ||
|
||
echo2 param: '|(.)|\1|,| => using the default letter and name' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|,|' --list-kinds-full=x | ||
# In this case, ctags recognizes a kind letter and name | ||
# are not given; 'r' and "regex" are used as default values. |
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,5 @@ | ||
param: |(.)|\1|^ => ignoring | ||
param: |(.)|\1|^| => warning | ||
ctags: Kind letter must be an alphabetical character: "^" | ||
param: |(.)|\1|, => ignoring | ||
param: |(.)|\1|,| => using the default letter and name |
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,10 @@ | ||
param: |(.)|\1|^ => ignoring | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
r regex yes no 0 NONE regex | ||
param: |(.)|\1|^| => warning | ||
param: |(.)|\1|, => ignoring | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
r regex yes no 0 NONE regex | ||
param: |(.)|\1|,| => using the default letter and name | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
r regex yes no 0 NONE regex |
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,54 @@ | ||
# Copyright: 2018 Masatake YAMATO | ||
# License: GPL-2 | ||
|
||
CTAGS="$1 --quiet --options=NONE" | ||
|
||
. ../utils.sh | ||
|
||
echo2 param: '|(.)|\1|x,name| => acceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,name|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,name,documents| => acceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,name,documents|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,name,0documents| => acceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,name,0documents|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,name,doc uments| => acceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,name,doc uments|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,name0| => acceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,name0|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,name0,documents| => acceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,name0,documents|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,name0,0documents| => acceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,name0,0documents|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,name0,doc uments| => acceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,name0,doc uments|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,0name| => unacceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,0name|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,0name,documents| => unacceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,0name,documents|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,0name,0documents| => unacceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,0name,0documents|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,0name,doc uments| => unacceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,0name,doc uments|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,na me| => unacceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,na me|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,na me,documents| => unacceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,na me,documents|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,na me,0documents| => unacceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,na me,0documents|' --list-kinds-full=x | ||
|
||
echo2 param: '|(.)|\1|x,na me,doc uments| => unacceptable' | ||
${CTAGS} --langdef=x --regex-x='|(.)|\1|x,na me,doc uments|' --list-kinds-full=x |
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,24 @@ | ||
param: |(.)|\1|x,name| => acceptable | ||
param: |(.)|\1|x,name,documents| => acceptable | ||
param: |(.)|\1|x,name,0documents| => acceptable | ||
param: |(.)|\1|x,name,doc uments| => acceptable | ||
param: |(.)|\1|x,name0| => acceptable | ||
param: |(.)|\1|x,name0,documents| => acceptable | ||
param: |(.)|\1|x,name0,0documents| => acceptable | ||
param: |(.)|\1|x,name0,doc uments| => acceptable | ||
param: |(.)|\1|x,0name| => unacceptable | ||
ctags: A kind name doesn't start with an alphabetical character: '0name' in "--regex-x" option | ||
param: |(.)|\1|x,0name,documents| => unacceptable | ||
ctags: A kind name doesn't start with an alphabetical character: '0name' in "--regex-x" option | ||
param: |(.)|\1|x,0name,0documents| => unacceptable | ||
ctags: A kind name doesn't start with an alphabetical character: '0name' in "--regex-x" option | ||
param: |(.)|\1|x,0name,doc uments| => unacceptable | ||
ctags: A kind name doesn't start with an alphabetical character: '0name' in "--regex-x" option | ||
param: |(.)|\1|x,na me| => unacceptable | ||
ctags: Non-alphanumeric char is used in kind name: 'na me' in "--regex-x" option | ||
param: |(.)|\1|x,na me,documents| => unacceptable | ||
ctags: Non-alphanumeric char is used in kind name: 'na me' in "--regex-x" option | ||
param: |(.)|\1|x,na me,0documents| => unacceptable | ||
ctags: Non-alphanumeric char is used in kind name: 'na me' in "--regex-x" option | ||
param: |(.)|\1|x,na me,doc uments| => unacceptable | ||
ctags: Non-alphanumeric char is used in kind name: 'na me' in "--regex-x" option |
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,32 @@ | ||
param: |(.)|\1|x,name| => acceptable | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
x name yes no 0 NONE name | ||
param: |(.)|\1|x,name,documents| => acceptable | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
x name yes no 0 NONE documents | ||
param: |(.)|\1|x,name,0documents| => acceptable | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
x name yes no 0 NONE 0documents | ||
param: |(.)|\1|x,name,doc uments| => acceptable | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
x name yes no 0 NONE doc uments | ||
param: |(.)|\1|x,name0| => acceptable | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
x name0 yes no 0 NONE name0 | ||
param: |(.)|\1|x,name0,documents| => acceptable | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
x name0 yes no 0 NONE documents | ||
param: |(.)|\1|x,name0,0documents| => acceptable | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
x name0 yes no 0 NONE 0documents | ||
param: |(.)|\1|x,name0,doc uments| => acceptable | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
x name0 yes no 0 NONE doc uments | ||
param: |(.)|\1|x,0name| => unacceptable | ||
param: |(.)|\1|x,0name,documents| => unacceptable | ||
param: |(.)|\1|x,0name,0documents| => unacceptable | ||
param: |(.)|\1|x,0name,doc uments| => unacceptable | ||
param: |(.)|\1|x,na me| => unacceptable | ||
param: |(.)|\1|x,na me,documents| => unacceptable | ||
param: |(.)|\1|x,na me,0documents| => unacceptable | ||
param: |(.)|\1|x,na me,doc uments| => unacceptable |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION | ||
a x y yes no 0 NONE x y z | ||
a xy yes no 0 NONE x y z | ||
b regex no no 0 NONE regex | ||
c regex no no 0 NONE regex | ||
d regex yes no 0 NONE regex |
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
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
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
Oops, something went wrong.