fix underescaped reexps

This commit is contained in:
nightwing 2012-10-01 17:51:45 +04:00
commit b28cf374be
4 changed files with 13 additions and 13 deletions

View file

@ -58,11 +58,11 @@ var ColdfusionHighlightRules = function() {
next : "comment" next : "comment"
}, { }, {
token : "meta.tag", token : "meta.tag",
regex : "<(?=\s*script)", regex : "<(?=script)",
next : "script" next : "script"
}, { }, {
token : "meta.tag", token : "meta.tag",
regex : "<(?=\s*style)", regex : "<(?=style)",
next : "style" next : "style"
}, { }, {
token : "meta.tag", // opening tag token : "meta.tag", // opening tag

View file

@ -80,11 +80,11 @@ var HtmlHighlightRules = function() {
regex : "<\\!.*?>" regex : "<\\!.*?>"
}, { }, {
token : "meta.tag", token : "meta.tag",
regex : "<(?=\s*script\\b)", regex : "<(?=script\\b)",
next : "script" next : "script"
}, { }, {
token : "meta.tag", token : "meta.tag",
regex : "<(?=\s*style\\b)", regex : "<(?=style\\b)",
next : "style" next : "style"
}, { }, {
token : "meta.tag", // opening tag token : "meta.tag", // opening tag

View file

@ -122,11 +122,11 @@ var RubyHighlightRules = function() {
token : "text", // namespaces aren't symbols token : "text", // namespaces aren't symbols
regex : "::" regex : "::"
}, { }, {
token : "variable.instancce", // instance variable token : "variable.instance", // instance variable
regex : "@{1,2}(?:[a-zA-Z_]|\d)+" regex : "@{1,2}[a-zA-Z_\\d]+"
}, { }, {
token : "variable.class", // class name token : "variable.class", // class name
regex : "[A-Z](?:[a-zA-Z_]|\d)+" regex : "[A-Z][a-zA-Z_\\d]+"
}, { }, {
token : "string", // symbol token : "string", // symbol
regex : "[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?" regex : "[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"

View file

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