From 4012a11208bcdb7a9fe729b55e566afcad5dd4a1 Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 28 Dec 2012 02:53:05 +0400 Subject: [PATCH] fix bracket matching in tcl mode --- lib/ace/mode/tcl_highlight_rules.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ace/mode/tcl_highlight_rules.js b/lib/ace/mode/tcl_highlight_rules.js index 24f631cb..8886e06f 100644 --- a/lib/ace/mode/tcl_highlight_rules.js +++ b/lib/ace/mode/tcl_highlight_rules.js @@ -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 : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|{\\*}|;|::"