diff options
author | Pascal Kuthe | 2023-03-13 18:27:54 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-03-16 06:46:08 +0000 |
commit | 90348b889f397f2753473764c2d7a02986beddeb (patch) | |
tree | b4da76ddd1a9daf0ff8ca0d572f6a9926cc99d06 /runtime/queries/meson/highlights.scm | |
parent | bbf480007d87631ef7b7f93cef170ec1af961406 (diff) |
revamped snippet text element parsing
Snippet text elements can contain escape sequences
that must be treated properly. Furthermore snippets
must always escape certain characters (like `}`
or `\`). The function has been updated to account
for that. `text` is now also included with
`anything` to match the grammar and can also
match empty text. To avoid infinite loops the
`non-empty` combinator has been added which is
automatically used in the `one_or_more` and
`zero_or more` combinator where the problemn would
occur.
Diffstat (limited to 'runtime/queries/meson/highlights.scm')
0 files changed, 0 insertions, 0 deletions