mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-12 00:38:23 +00:00
1b41a61cf2
In the AF language, ``` foo := "abc def" ``` declares a valid string with a linebreak inside. This wasn't previously highlighted by ace, since normal rules are scanned line-by-line. The code added here is essentially copied from the PHP highlighter [1], whose rules should be almost the same as AF. This new syntax also highlights escape sequences inside strings, e.g. in "foo\\bar" see how the backslashes have a different color. [1] - https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/php_highlight_rules.js#L1058 Change-Id: Idb51001af00ff2ef118741cd686dc1adf19aebee |
||
---|---|---|
.. | ||
ve-abusefilter | ||
ext.abuseFilter.css | ||
ext.abuseFilter.edit.js | ||
ext.abuseFilter.examine.js | ||
ext.abuseFilter.tools.js | ||
mode-abusefilter.js | ||
red_x.png | ||
worker-abusefilter.js | ||
yes_check.png |