fix bracket matching in tcl mode
This commit is contained in:
parent
782e3f8743
commit
4012a11208
1 changed files with 5 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ var TclHighlightRules = function() {
|
||||||
regex : '[ ]*["]',
|
regex : '[ ]*["]',
|
||||||
next : "qqstring"
|
next : "qqstring"
|
||||||
}, {
|
}, {
|
||||||
token : "variable.instancce", // variable xotcl with braces
|
token : "variable.instance", // variable xotcl with braces
|
||||||
regex : "[$]",
|
regex : "[$]",
|
||||||
next : "variable"
|
next : "variable"
|
||||||
}, {
|
}, {
|
||||||
|
|
@ -103,7 +103,7 @@ var TclHighlightRules = function() {
|
||||||
token : "string", // single line
|
token : "string", // single line
|
||||||
regex : '[ ]*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
regex : '[ ]*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
||||||
}, {
|
}, {
|
||||||
token : "variable.instancce", // variable xotcl with braces
|
token : "variable.instance", // variable xotcl with braces
|
||||||
regex : "[$]",
|
regex : "[$]",
|
||||||
next : "variable"
|
next : "variable"
|
||||||
}, {
|
}, {
|
||||||
|
|
@ -118,6 +118,9 @@ var TclHighlightRules = function() {
|
||||||
token : "support.function",
|
token : "support.function",
|
||||||
regex : "(?:[:][:])",
|
regex : "(?:[:][:])",
|
||||||
next : "commandItem"
|
next : "commandItem"
|
||||||
|
}, {
|
||||||
|
token : "paren.rparen",
|
||||||
|
regex : "[\\])}]"
|
||||||
}, {
|
}, {
|
||||||
token : "support.function",
|
token : "support.function",
|
||||||
regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|{\\*}|;|::"
|
regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|{\\*}|;|::"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue