mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 13:46:48 +00:00
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:
parent
81a4fdc964
commit
b46a4336de
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue