mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +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 |
||
---|---|---|
.phan | ||
db_patches | ||
i18n | ||
includes | ||
maintenance | ||
modules | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AbuseFilter.alias.php | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
package-lock.json | ||
package.json |