-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(autodetect) tcl: improve autodetection (#2865)
* enh(autodetect) tcl: fewer false positives on variables For languages with $ident and @Ident style variables this attempts to prevent positives for $ident$ and @Ident@ type expressions, which are likely something else entirely. - Improves TCL variable detection to be more explicit - Adds TCL variable detection tests * fix(tcl) Make regex UTF-8 compatible
- Loading branch information
1 parent
bacf368
commit 374a7e5
Showing
6 changed files
with
83 additions
and
21 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,24 @@ | ||
<span class="hljs-variable">$name</span> | ||
<span class="hljs-variable">${name}</span> | ||
<span class="hljs-variable">${::name}</span> | ||
<span class="hljs-variable">${::namespace::name}</span> | ||
<span class="hljs-variable">${::namespace::another::name}</span> | ||
|
||
<span class="hljs-variable">$name</span>() | ||
<span class="hljs-variable">$name</span>(<span class="hljs-number">32</span>) | ||
<span class="hljs-variable">$name</span>(index) | ||
|
||
<span class="hljs-variable">$with_underscore::oth_er::and_finally</span>(<span class="hljs-number">32</span>) | ||
|
||
<span class="hljs-variable">${name()}</span> | ||
<span class="hljs-variable">${name(<span class="hljs-number">32</span>)}</span> | ||
<span class="hljs-variable">${name(index)}</span> | ||
|
||
<span class="hljs-variable">${ns::other::name()}</span> | ||
<span class="hljs-variable">${ns::other::name(<span class="hljs-number">32</span>)}</span> | ||
<span class="hljs-variable">${ns::other::name(index)}</span> | ||
|
||
|
||
<span class="hljs-variable">$ns::other::name</span>() | ||
<span class="hljs-variable">$ns::other::name</span>(<span class="hljs-number">32</span>) | ||
<span class="hljs-variable">$ns::other::name</span>(index) |
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 @@ | ||
$name | ||
${name} | ||
${::name} | ||
${::namespace::name} | ||
${::namespace::another::name} | ||
|
||
$name() | ||
$name(32) | ||
$name(index) | ||
|
||
$with_underscore::oth_er::and_finally(32) | ||
|
||
${name()} | ||
${name(32)} | ||
${name(index)} | ||
|
||
${ns::other::name()} | ||
${ns::other::name(32)} | ||
${ns::other::name(index)} | ||
|
||
|
||
$ns::other::name() | ||
$ns::other::name(32) | ||
$ns::other::name(index) |