kopia lustrzana https://github.com/c9/core
Merge remote-tracking branch 'origin/master' into sfdc-create-flow
Conflicts: test/selenium/lib/cfcommon.jspull/134/head
commit
4d0ebbbf47
|
@ -95,7 +95,7 @@
|
||||||
["meta.tag.any.jade"," test"],
|
["meta.tag.any.jade"," test"],
|
||||||
["punctuation","("],
|
["punctuation","("],
|
||||||
["entity.other.attribute-name.jade","id"],
|
["entity.other.attribute-name.jade","id"],
|
||||||
["text","="],
|
["punctuation","="],
|
||||||
["string","\"tag\""],
|
["string","\"tag\""],
|
||||||
["punctuation",")"]
|
["punctuation",")"]
|
||||||
],[
|
],[
|
||||||
|
@ -103,15 +103,15 @@
|
||||||
["meta.tag.any.jade"," header"],
|
["meta.tag.any.jade"," header"],
|
||||||
["punctuation","("],
|
["punctuation","("],
|
||||||
["entity.other.attribute-name.jade","id"],
|
["entity.other.attribute-name.jade","id"],
|
||||||
["text","="],
|
["punctuation","="],
|
||||||
["string","\"tag\""],
|
["string","\"tag\""],
|
||||||
["text",", "],
|
["text",", "],
|
||||||
["entity.other.attribute-name.jade","blah"],
|
["entity.other.attribute-name.jade","blah"],
|
||||||
["text","="],
|
["punctuation","="],
|
||||||
["string","\"foo\""],
|
["string","\"foo\""],
|
||||||
["text",", "],
|
["text",", "],
|
||||||
["entity.other.attribute-name.jade","meh"],
|
["entity.other.attribute-name.jade","meh"],
|
||||||
["text","="],
|
["punctuation","="],
|
||||||
["string","\"aads\""],
|
["string","\"aads\""],
|
||||||
["punctuation",")"]
|
["punctuation",")"]
|
||||||
],[
|
],[
|
||||||
|
|
|
@ -230,13 +230,9 @@ var JadeHighlightRules = function() {
|
||||||
regex : '"(?=.)',
|
regex : '"(?=.)',
|
||||||
next : "qqstring"
|
next : "qqstring"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
token: "entity.other.attribute-name.jade",
|
|
||||||
regex: "\\b[a-zA-Z\\-:]+"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
token: ["entity.other.attribute-name.jade", "punctuation"],
|
token: ["entity.other.attribute-name.jade", "punctuation"],
|
||||||
regex: "\\b([a-zA-Z:\\.-]+)(=)",
|
regex: "([a-zA-Z:\\.-]+)(=)?",
|
||||||
next: "attribute_strings"
|
next: "attribute_strings"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -255,6 +251,11 @@ var JadeHighlightRules = function() {
|
||||||
token : "string",
|
token : "string",
|
||||||
regex : '"(?=.)',
|
regex : '"(?=.)',
|
||||||
next : "qqstring"
|
next : "qqstring"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
token : "string",
|
||||||
|
regex : '(?=\\S)',
|
||||||
|
next : "tag_attributes"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"qqstring" : [
|
"qqstring" : [
|
||||||
|
|
|
@ -213,6 +213,11 @@ var Tokenizer = function(rules) {
|
||||||
if (lastCapture.end != null && /^\)*$/.test(src.substr(lastCapture.end)))
|
if (lastCapture.end != null && /^\)*$/.test(src.substr(lastCapture.end)))
|
||||||
src = src.substring(0, lastCapture.start) + src.substr(lastCapture.end);
|
src = src.substring(0, lastCapture.start) + src.substr(lastCapture.end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this is needed for regexps that can match in multiple ways
|
||||||
|
if (src.charAt(0) != "^") src = "^" + src;
|
||||||
|
if (src.charAt(src.length - 1) != "$") src += "$";
|
||||||
|
|
||||||
return new RegExp(src, (flag||"").replace("g", ""));
|
return new RegExp(src, (flag||"").replace("g", ""));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue