fix bracket matching in tcl mode

This commit is contained in:
nightwing 2012-12-28 02:53:05 +04:00
commit 4012a11208

View file

@ -66,7 +66,7 @@ var TclHighlightRules = function() {
regex : '[ ]*["]',
next : "qqstring"
}, {
token : "variable.instancce", // variable xotcl with braces
token : "variable.instance", // variable xotcl with braces
regex : "[$]",
next : "variable"
}, {
@ -103,7 +103,7 @@ var TclHighlightRules = function() {
token : "string", // single line
regex : '[ ]*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
}, {
token : "variable.instancce", // variable xotcl with braces
token : "variable.instance", // variable xotcl with braces
regex : "[$]",
next : "variable"
}, {
@ -118,6 +118,9 @@ var TclHighlightRules = function() {
token : "support.function",
regex : "(?:[:][:])",
next : "commandItem"
}, {
token : "paren.rparen",
regex : "[\\])}]"
}, {
token : "support.function",
regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|{\\*}|;|::"