kakoune/test/regression/3041-invalid-regex-highlight-accross-regions/rc
Maxime Coste b37638dda4 Split RegexHighlighters matches per requested buffer ranges
When a region calls the regex highlighter, it is incorrect to share
the regex cache as it means we can get matches that span multiple
regions.

Fixes #3041
2020-01-05 18:58:32 +11:00

6 lines
261 B
Plaintext

add-highlighter shared/test regions
add-highlighter shared/test/base default-region regions
add-highlighter shared/test/base/base default-region regex _[^_]+_ 0:+b
add-highlighter shared/test/item region '^- \K' $ ref test/base
add-highlighter window/ ref test