Skip to content

Commit

Permalink
Tcl: don't include '"' char as a part of identifiers
Browse files Browse the repository at this point in the history
Close #3638.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Feb 6, 2023
1 parent 555198a commit e2ac261
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions Units/parser-tcl.r/tcl-issue-3638.d/args.ctags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--sort=no
10 changes: 10 additions & 0 deletions Units/parser-tcl.r/tcl-issue-3638.d/input.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Taken from https://github.com/universal-ctags/ctags/issues/3638 submitted by @kenifanying
proc test1 {a} {
set i 1
set PORT1 Gi0/1
set PORT2 Te1/1
puts "[format "%10s %10s %10s" "$i |" $PORT1 $PORT2]"
}
proc test2 {} {
puts "test2"
}
2 changes: 1 addition & 1 deletion parsers/tcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static void readIdentifier (vString *string)
while (1)
{
int c = getcFromInputFile ();
if (isgraph (c) && (!strchr ("{}[]", c)))
if (isgraph (c) && (!strchr ("{}[]\"", c)))
vStringPut (string, c);
else
{
Expand Down

0 comments on commit e2ac261

Please sign in to comment.