fix livescript highlighting
This commit is contained in:
parent
55bf8e56d3
commit
5e4facea44
2 changed files with 9 additions and 8 deletions
|
|
@ -52,8 +52,7 @@ define(function(require, exports, module){
|
|||
}(require('../mode/text').Mode));
|
||||
keywordend = '(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))';
|
||||
stringfill = {
|
||||
token: 'string',
|
||||
regex: '.+'
|
||||
defaultToken: 'string'
|
||||
};
|
||||
LiveScriptMode.Rules = {
|
||||
start: [
|
||||
|
|
@ -146,7 +145,7 @@ define(function(require, exports, module){
|
|||
next: 'key'
|
||||
}, {
|
||||
token: 'keyword.operator',
|
||||
regex: '\\S+'
|
||||
regex: '[\\^!|&%+\\-]+'
|
||||
}, {
|
||||
token: 'text',
|
||||
regex: '\\s+'
|
||||
|
|
@ -164,8 +163,7 @@ define(function(require, exports, module){
|
|||
token: 'comment.regex',
|
||||
regex: '\\s+(?:#.*)?'
|
||||
}, {
|
||||
token: 'string.regex',
|
||||
regex: '\\S+'
|
||||
defaultToken: 'string.regex'
|
||||
}
|
||||
],
|
||||
key: [
|
||||
|
|
@ -178,7 +176,7 @@ define(function(require, exports, module){
|
|||
next: 'start'
|
||||
}, {
|
||||
token: 'text',
|
||||
regex: '.',
|
||||
regex: '',
|
||||
next: 'start'
|
||||
}
|
||||
],
|
||||
|
|
@ -188,8 +186,7 @@ define(function(require, exports, module){
|
|||
regex: '.*?\\*/',
|
||||
next: 'start'
|
||||
}, {
|
||||
token: 'comment.doc',
|
||||
regex: '.+'
|
||||
defaultToken: 'comment.doc'
|
||||
}
|
||||
],
|
||||
qdoc: [
|
||||
|
|
|
|||
|
|
@ -135,6 +135,10 @@ var deps = {
|
|||
});
|
||||
}
|
||||
},
|
||||
liveScript: {
|
||||
path: "mode/livescript.js",
|
||||
url: "https://raw.githubusercontent.com/gkz/LiveScript/master/lib/mode-ls.js"
|
||||
},
|
||||
coffee: {
|
||||
fetch: function(){
|
||||
var rootHref = "https://raw.github.com/jashkenas/coffee-script/master/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue