From bc66204d591c688277041c70e9ceaed3a3b959d8 Mon Sep 17 00:00:00 2001 From: Christoph Hochreiner Date: Mon, 8 Apr 2013 14:45:58 +0200 Subject: [PATCH] remove not necessary/worng comments and not tcl specific rule for variables (is only valid for the tcl extension xotcl --- lib/ace/mode/tcl_highlight_rules.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/ace/mode/tcl_highlight_rules.js b/lib/ace/mode/tcl_highlight_rules.js index 8886e06f..55b0ad6a 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.instance", // variable xotcl with braces + token : "variable.instance", regex : "[$]", next : "variable" }, { @@ -103,7 +103,7 @@ var TclHighlightRules = function() { token : "string", // single line regex : '[ ]*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' }, { - token : "variable.instance", // variable xotcl with braces + token : "variable.instance", regex : "[$]", next : "variable" }, { @@ -147,10 +147,6 @@ var TclHighlightRules = function() { }], "variable" : [ { - token : "variable.instance", // variable xotcl with braces - regex : "(?:[:][:])?[a-zA-Z_\\d]+(?:(?:[:][:])?[a-zA-Z_\\d]+)?(?:[(][a-zA-Z_\\d]+[)])?", - next : "start" - }, { token : "variable.instance", // variable tcl regex : "[a-zA-Z_\\d]+(?:[(][a-zA-Z_\\d]+[)])?", next : "start"