temporary workaround for tokenizer not working for rules ending with $
This commit is contained in:
parent
b54a00cb4d
commit
635da1f2ea
7 changed files with 19 additions and 19 deletions
|
|
@ -87,8 +87,8 @@ var ActionScriptHighlightRules = function() {
|
|||
next: 'pop' },
|
||||
{ defaultToken: 'comment.block.actionscript.2' } ] },
|
||||
{ token: 'punctuation.definition.comment.actionscript.2',
|
||||
regex: '//',
|
||||
push:
|
||||
regex: '//.*$',
|
||||
push_:
|
||||
[ { token: 'comment.line.double-slash.actionscript.2',
|
||||
regex: '$',
|
||||
next: 'pop' },
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ var ClojureHighlightRules = function() {
|
|||
regex : '"',
|
||||
next: "string"
|
||||
}, {
|
||||
token : "string", // symbol
|
||||
token : "constant", // symbol
|
||||
regex : /:[\w*+!\-_?:\/]+/
|
||||
}, {
|
||||
token : "string.regexp", //Regular Expressions
|
||||
|
|
|
|||
|
|
@ -119,8 +119,8 @@ var ErlangHighlightRules = function() {
|
|||
{ token: 'invalid.illegal.character.erlang', regex: '\\$.?' } ],
|
||||
'#comment':
|
||||
[ { token: 'punctuation.definition.comment.erlang',
|
||||
regex: '%',
|
||||
push:
|
||||
regex: '%.*$',
|
||||
push_:
|
||||
[ { token: 'comment.line.percentage.erlang',
|
||||
regex: '$',
|
||||
next: 'pop' },
|
||||
|
|
|
|||
|
|
@ -171,8 +171,8 @@ var HaskellHighlightRules = function() {
|
|||
{ defaultToken: 'comment.block.haskell' } ] } ],
|
||||
'#comments':
|
||||
[ { token: 'punctuation.definition.comment.haskell',
|
||||
regex: '--',
|
||||
push:
|
||||
regex: '--.*',
|
||||
push_:
|
||||
[ { token: 'comment.line.double-dash.haskell',
|
||||
regex: '$',
|
||||
next: 'pop' },
|
||||
|
|
|
|||
|
|
@ -46,15 +46,15 @@ var IniHighlightRules = function() {
|
|||
|
||||
this.$rules = { start:
|
||||
[ { token: 'punctuation.definition.comment.ini',
|
||||
regex: '#',
|
||||
push:
|
||||
regex: '#.*',
|
||||
push_:
|
||||
[ { token: 'comment.line.number-sign.ini',
|
||||
regex: '$',
|
||||
next: 'pop' },
|
||||
{ defaultToken: 'comment.line.number-sign.ini' } ] },
|
||||
{ token: 'punctuation.definition.comment.ini',
|
||||
regex: ';',
|
||||
push:
|
||||
regex: ';.*',
|
||||
push_:
|
||||
[ { token: 'comment.line.semicolon.ini', regex: '$', next: 'pop' },
|
||||
{ defaultToken: 'comment.line.semicolon.ini' } ] },
|
||||
{ token:
|
||||
|
|
|
|||
|
|
@ -69,15 +69,15 @@ var PascalHighlightRules = function() {
|
|||
{ token: 'constant.numeric.pascal',
|
||||
regex: '\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b' },
|
||||
{ token: 'punctuation.definition.comment.pascal',
|
||||
regex: '--',
|
||||
push:
|
||||
regex: '--.*$',
|
||||
push_:
|
||||
[ { token: 'comment.line.double-dash.pascal.one',
|
||||
regex: '$',
|
||||
next: 'pop' },
|
||||
{ defaultToken: 'comment.line.double-dash.pascal.one' } ] },
|
||||
{ token: 'punctuation.definition.comment.pascal',
|
||||
regex: '//',
|
||||
push:
|
||||
regex: '//.*$',
|
||||
push_:
|
||||
[ { token: 'comment.line.double-slash.pascal.two',
|
||||
regex: '$',
|
||||
next: 'pop' },
|
||||
|
|
|
|||
|
|
@ -89,15 +89,15 @@ var RustHighlightRules = function() {
|
|||
{ token: 'constant.numeric.float.source.rust',
|
||||
regex: '[0-9][0-9_]*(?:f32|f64|f)|[0-9][0-9_]*[eE][+-]=[0-9_]+|[0-9][0-9_]*[eE][+-]=[0-9_]+(?:f32|f64|f)|[0-9][0-9_]*\\.[0-9_]+|[0-9][0-9_]*\\.[0-9_]+(?:f32|f64|f)|[0-9][0-9_]*\\.[0-9_]+%[eE][+-]=[0-9_]+|[0-9][0-9_]*\\.[0-9_]+%[eE][+-]=[0-9_]+(?:f32|f64|f)' },
|
||||
{ token: 'comment.line.documentation.source.rust',
|
||||
regex: '//!',
|
||||
push:
|
||||
regex: '//!.*$',
|
||||
push_:
|
||||
[ { token: 'comment.line.documentation.source.rust',
|
||||
regex: '$',
|
||||
next: 'pop' },
|
||||
{ defaultToken: 'comment.line.documentation.source.rust' } ] },
|
||||
{ token: 'comment.line.double-dash.source.rust',
|
||||
regex: '//',
|
||||
push:
|
||||
regex: '//.*$',
|
||||
push_:
|
||||
[ { token: 'comment.line.double-dash.source.rust',
|
||||
regex: '$',
|
||||
next: 'pop' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue