Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tcl: don't include '"' char as a part of identifiers #3639

Merged
merged 1 commit into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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