Go to file
Daimona Eaytoy 1b41a61cf2 ace: Add support for multiline strings
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
2021-10-03 16:24:51 +00:00
.phan Notify of a throttled filter 2020-12-19 10:31:29 +01:00
db_patches Make mysql/patch-remove-afl_filter.sql valid SQL 2021-09-25 03:41:43 +01:00
i18n Localisation updates from https://translatewiki.net. 2021-10-01 09:29:17 +02:00
includes Merge "Replace custom regex with TextContent::normalizeLineEndings()" 2021-10-01 14:04:36 +00:00
maintenance Remove leftovers of AbuseFilterAflFilterMigrationStage 2021-09-25 03:48:37 +02:00
modules ace: Add support for multiline strings 2021-10-03 16:24:51 +00:00
tests Merge "Remove afl_filter entirely" 2021-09-25 01:39:08 +00:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-10 23:05:48 +00:00
.gitignore Add config for Selenium and basic tests 2019-09-17 16:23:07 +00:00
.gitreview Whoops, track not trace 2016-10-24 17:01:30 -07:00
.phpcs.xml Merge "Use FauxRequest::setUpload in AbuseFilterUploadTestTrait::doUpload" 2021-05-15 12:22:10 +00:00
.stylelintrc.json build: Bump devDependencies to latest 2018-02-10 21:00:53 +00:00
AbuseFilter.alias.php Add aliases for Serbian language 2018-12-24 02:16:55 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.4.0 2018-09-01 05:29:54 +00:00
composer.json build: Updating mediawiki/mediawiki-phan-config to 0.11.0 2021-09-07 19:30:42 -07:00
COPYING Add COPYING 2014-01-22 21:21:10 +00:00
extension.json Remove afl_filter entirely 2021-09-18 11:06:10 +00:00
Gruntfile.js eslint config tweaks 2020-06-09 19:39:03 +01:00
package-lock.json build: Updating dependencies 2021-09-02 00:07:53 +00:00
package.json build: Updating dependencies 2021-09-02 00:07:53 +00:00