neovim/test/functional/treesitter
Raymond W. Ko 7c95697026
treesitter: add predicate "any-of?" (#14344)
For the case of Clojure and other Lisp syntax highlighting, it is
necessary to create huge regexps consisting of hundreds of symbols with
the pipe (|) character. To make things more difficult, these Lisp
symbols sometimes consists of special characters that are themselves
part of special regexp characters like '*'. In addition to being
difficult to maintain, it's performance is suboptimal.

This patch introduces a new predicate to perform 'source' matching in
amortized constant time. This is accomplished by compiling a hash table
on the first use.
2021-05-14 17:41:20 +02:00
..
highlight_spec.lua feat(treesitter): allow injections to be configured through directives 2021-04-02 12:48:16 -05:00
language_spec.lua feat(ts): include parser ABI version in checkhealth 2021-04-06 19:02:58 +02:00
parser_spec.lua treesitter: add predicate "any-of?" (#14344) 2021-05-14 17:41:20 +02:00