Merge branch 'master' of github.com:ajaxorg/ace
This commit is contained in:
commit
e649e9fdcc
3 changed files with 6 additions and 6 deletions
|
|
@ -140,11 +140,11 @@ StateHandler.prototype = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there is a command to execute, then figure out the
|
// If there is a command to execute, then figure out the
|
||||||
// comand and the arguments.
|
// command and the arguments.
|
||||||
if (binding.exec) {
|
if (binding.exec) {
|
||||||
result.command = binding.exec;
|
result.command = binding.exec;
|
||||||
|
|
||||||
// Bulid the arguments.
|
// Build the arguments.
|
||||||
if (binding.params) {
|
if (binding.params) {
|
||||||
var value;
|
var value;
|
||||||
result.args = {};
|
result.args = {};
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,7 @@ var CstyleBehaviour = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try and be smart about when we auto insert.
|
// Try and be smart about when we auto insert.
|
||||||
if (quotepos < 0 && token.type !== "comment" && (token.type !== "string" || ((selection.start.column !== token.value.length+col-1) && token.value.lastIndexOf('"') === token.value.length-1))) {
|
if (!token || (quotepos < 0 && token.type !== "comment" && (token.type !== "string" || ((selection.start.column !== token.value.length+col-1) && token.value.lastIndexOf('"') === token.value.length-1)))) {
|
||||||
return {
|
return {
|
||||||
text: '""',
|
text: '""',
|
||||||
selection: [1,1]
|
selection: [1,1]
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ var HtmlHighlightRules = function() {
|
||||||
}, {
|
}, {
|
||||||
token : "text",
|
token : "text",
|
||||||
regex : "\\s+"
|
regex : "\\s+"
|
||||||
}].concat(string("css")),
|
}].concat(string("style")),
|
||||||
|
|
||||||
tag : [ {
|
tag : [ {
|
||||||
token : "text",
|
token : "text",
|
||||||
|
|
@ -145,8 +145,8 @@ var HtmlHighlightRules = function() {
|
||||||
regex : "\\s+"
|
regex : "\\s+"
|
||||||
}].concat(string("tag")),
|
}].concat(string("tag")),
|
||||||
|
|
||||||
"css-qstring": multiLineString("'", "css"),
|
"style-qstring": multiLineString("'", "style"),
|
||||||
"css-qqstring": multiLineString('"', "css"),
|
"style-qqstring": multiLineString('"', "style"),
|
||||||
"script-qstring": multiLineString("'", "script"),
|
"script-qstring": multiLineString("'", "script"),
|
||||||
"script-qqstring": multiLineString('"', "script"),
|
"script-qqstring": multiLineString('"', "script"),
|
||||||
"tag-qstring": multiLineString("'", "tag"),
|
"tag-qstring": multiLineString("'", "tag"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue