Remove hex numbers from Ace highlight

Since our parser doesn't recognize them. Follow up of
If95e34fc7260413c4fb39c18a1ef44f5a93e1a68.

Change-Id: I4511a69f3be60b4c90b499c5179cf0f5bf1d6b07
This commit is contained in:
Daimona Eaytoy 2018-08-23 12:23:16 +02:00
parent 81a4fdc964
commit b46a4336de

View file

@ -19,9 +19,7 @@ ace.define( 'ace/mode/abusefilter_highlight_rules', [ 'require', 'exports', 'mod
},
'identifier'
),
decimalInteger = '(?:(?:[1-9]\\d*)|(?:0))',
hexInteger = '(?:0[xX][\\dA-Fa-f]+)',
integer = '(?:' + decimalInteger + '|' + hexInteger + ')',
integer = '(?:(?:[1-9]\\d*)|(?:0))',
fraction = '(?:\\.\\d+)',
intPart = '(?:\\d+)',
pointFloat = '(?:(?:' + intPart + '?' + fraction + ')|(?:' + intPart + '\\.))',
@ -41,10 +39,10 @@ ace.define( 'ace/mode/abusefilter_highlight_rules', [ 'require', 'exports', 'mod
token: 'string',
regex: singleQuoteString
}, {
token: 'constant.numeric', // float
token: 'constant.numeric',
regex: floatNumber
}, {
token: 'constant.numeric', // integer
token: 'constant.numeric',
regex: integer + '\\b'
}, {
token: keywordMapper,