diff options
author | Neil <nyamatongwe@gmail.com> | 2015-02-24 10:10:05 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-02-24 10:10:05 +1100 |
commit | 1aeafe1e0a9896f5db86cdcccee919db1eb86702 (patch) | |
tree | a52950a5152dab20f83656ce569857cd65883fe1 /lexers/LexTCL.cxx | |
parent | f18873c71e55526c8dd606b5979da7df127fa418 (diff) | |
download | scintilla-mirror-1aeafe1e0a9896f5db86cdcccee919db1eb86702.tar.gz |
Bug [#1642]. Fixes a bug with some strings in TCL.
From Markus Moser.
Diffstat (limited to 'lexers/LexTCL.cxx')
-rw-r--r-- | lexers/LexTCL.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lexers/LexTCL.cxx b/lexers/LexTCL.cxx index 7c883a644..004dab113 100644 --- a/lexers/LexTCL.cxx +++ b/lexers/LexTCL.cxx @@ -257,7 +257,7 @@ next: sc.ForwardSetState(SCE_TCL_DEFAULT); visibleChars = true; // necessary if a " is the first and only character on a line goto next; - } else if (sc.ch == '[' || sc.ch == ']' || sc.ch == '$') { + } else if (sc.ch == '[' || sc.ch == ']' || sc.ch == '$' || sc.ch == '(') { sc.SetState(SCE_TCL_OPERATOR); expected = sc.ch == '['; sc.ForwardSetState(SCE_TCL_IN_QUOTE); @@ -324,7 +324,11 @@ next: break; case '$': subParen = 0; - if (sc.chNext != '{') { + if (sc.chNext == '(') { + //$("") jquery selector?! + sc.SetState(SCE_TCL_OPERATOR); + } + else if (sc.chNext != '{') { sc.SetState(SCE_TCL_SUBSTITUTION); } else { |