fix highlighting of LogicBlox numbers

This commit is contained in:
nightwing 2013-03-12 13:16:55 +04:00
commit 49aa5a5409

View file

@ -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: '"',