Files
neovim/runtime/lua/vim/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
..
2021-05-01 08:19:48 -04:00
2021-05-01 08:19:48 -04:00
2021-05-01 08:19:48 -04:00
2021-05-01 08:19:48 -04:00