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.
readtags: unescape input field (a.k.a {tagfile}) only if TAG_OUTPUT_M…
…ODE is u-ctags and TAG_OUTPUT_FILESEP is slash Close universal-ctags#3577. Close universal-ctags#3559 except documentation. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
16 changed files
with
151 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!_TAG_PROC_CWD /home/a\tb // |
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 @@ | ||
!_TAG_OUTPUT_FILESEP backslash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // |
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 @@ | ||
!_TAG_OUTPUT_FILESEP slash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // |
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 @@ | ||
!_TAG_OUTPUT_MODE e-ctags /u-ctags or e-ctags/ | ||
!_TAG_PROC_CWD /home/a\tb // |
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,3 @@ | ||
!_TAG_OUTPUT_MODE e-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP backslash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // |
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,3 @@ | ||
!_TAG_OUTPUT_MODE e-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP slash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // |
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 @@ | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_PROC_CWD /home/a\tb // |
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,3 @@ | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP backslash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // |
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,3 @@ | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP slash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // |
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 @@ | ||
#!/bin/sh | ||
|
||
# Copyright: 2022 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 m in e u _; do | ||
for s in s b _; do | ||
echo ${READTAGS##*/} -e -t example-$m-$s.tags -E -D: | ||
${V} ${READTAGS} -e -t example-$m-$s.tags -E -D | ||
echo ${READTAGS##*/} -e -t example-$m-$s.tags -D: | ||
${V} ${READTAGS} -e -t example-$m-$s.tags -D | ||
echo | ||
done | ||
done |
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,69 @@ | ||
readtags -e -t example-e-s.tags -E -D: | ||
!_TAG_OUTPUT_MODE e-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP slash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
readtags -e -t example-e-s.tags -D: | ||
!_TAG_OUTPUT_MODE e-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP slash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
|
||
readtags -e -t example-e-b.tags -E -D: | ||
!_TAG_OUTPUT_MODE e-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP backslash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
readtags -e -t example-e-b.tags -D: | ||
!_TAG_OUTPUT_MODE e-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP backslash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
|
||
readtags -e -t example-e-_.tags -E -D: | ||
!_TAG_OUTPUT_MODE e-ctags /u-ctags or e-ctags/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
readtags -e -t example-e-_.tags -D: | ||
!_TAG_OUTPUT_MODE e-ctags /u-ctags or e-ctags/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
|
||
readtags -e -t example-u-s.tags -E -D: | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP slash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
readtags -e -t example-u-s.tags -D: | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP slash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a b // | ||
|
||
readtags -e -t example-u-b.tags -E -D: | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP backslash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
readtags -e -t example-u-b.tags -D: | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_OUTPUT_FILESEP backslash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
|
||
readtags -e -t example-u-_.tags -E -D: | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
readtags -e -t example-u-_.tags -D: | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
|
||
readtags -e -t example-_-s.tags -E -D: | ||
!_TAG_OUTPUT_FILESEP slash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
readtags -e -t example-_-s.tags -D: | ||
!_TAG_OUTPUT_FILESEP slash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
|
||
readtags -e -t example-_-b.tags -E -D: | ||
!_TAG_OUTPUT_FILESEP backslash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
readtags -e -t example-_-b.tags -D: | ||
!_TAG_OUTPUT_FILESEP backslash /slash or backslash/ | ||
!_TAG_PROC_CWD /home/a\tb // | ||
|
||
readtags -e -t example-_-_.tags -E -D: | ||
!_TAG_PROC_CWD /home/a\tb // | ||
readtags -e -t example-_-_.tags -D: | ||
!_TAG_PROC_CWD /home/a\tb // | ||
|
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