fix highlighting of LogicBlox numbers
This commit is contained in:
parent
5d6bc3a75d
commit
49aa5a5409
1 changed files with 2 additions and 5 deletions
|
|
@ -53,12 +53,9 @@ var LogicBloxHighlightRules = function() {
|
||||||
//A single line comment.
|
//A single line comment.
|
||||||
},
|
},
|
||||||
{ token: 'constant.numeric',
|
{ token: 'constant.numeric',
|
||||||
regex: '\\d+',
|
regex: '\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?',
|
||||||
//An integer constant.
|
//An integer constant.
|
||||||
},
|
//Or a Real number.
|
||||||
{ token: 'constant.numeric',
|
|
||||||
regex: '\\d+(.\\d+){,1}[eE][+-]{,1}\\d+',
|
|
||||||
//Real numbers.
|
|
||||||
},
|
},
|
||||||
{ token: 'string',
|
{ token: 'string',
|
||||||
regex: '"',
|
regex: '"',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue