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.
},
{ token: 'constant.numeric',
regex: '\\d+',
regex: '\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?',
//An integer constant.
},
{ token: 'constant.numeric',
regex: '\\d+(.\\d+){,1}[eE][+-]{,1}\\d+',
//Real numbers.
//Or a Real number.
},
{ token: 'string',
regex: '"',