Merge remote-tracking branch 'origin/master' into sfdc-create-flow

Conflicts:
	test/selenium/lib/cfcommon.js
pull/134/head
Fabian Jakobs 2015-08-10 12:58:58 +00:00
commit 4d0ebbbf47
3 zmienionych plików z 15 dodań i 9 usunięć

Wyświetl plik

@ -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",")"]
],[ ],[

Wyświetl plik

@ -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" : [

5
node_modules/ace/lib/ace/tokenizer.js wygenerowano vendored
Wyświetl plik

@ -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", ""));
}; };