remove not necessary/worng comments and not tcl specific rule for variables (is only valid for the tcl extension xotcl

This commit is contained in:
Christoph Hochreiner 2013-04-08 14:45:58 +02:00
commit bc66204d59

View file

@ -66,7 +66,7 @@ var TclHighlightRules = function() {
regex : '[ ]*["]', regex : '[ ]*["]',
next : "qqstring" next : "qqstring"
}, { }, {
token : "variable.instance", // variable xotcl with braces token : "variable.instance",
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.instance", // variable xotcl with braces token : "variable.instance",
regex : "[$]", regex : "[$]",
next : "variable" next : "variable"
}, { }, {
@ -147,10 +147,6 @@ var TclHighlightRules = function() {
}], }],
"variable" : [ "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 token : "variable.instance", // variable tcl
regex : "[a-zA-Z_\\d]+(?:[(][a-zA-Z_\\d]+[)])?", regex : "[a-zA-Z_\\d]+(?:[(][a-zA-Z_\\d]+[)])?",
next : "start" next : "start"