Files
neovim/runtime
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 14:22:52 -04:00
2021-05-02 12:44:04 -04:00
2021-05-02 13:00:38 -04:00
2021-05-02 13:00:38 -04:00
2021-05-01 22:29:03 -04:00
2021-05-01 22:29:03 -04:00
2021-05-01 23:19:57 -04:00
2021-05-02 12:44:04 -04:00
2014-12-19 15:28:49 -05:00
2021-03-09 19:21:26 +01:00
2018-01-15 23:58:52 +01:00
2021-05-02 13:00:38 -04:00
2021-04-29 21:08:09 -04:00
2019-11-27 22:47:25 -08:00
2019-07-29 20:50:07 +02:00
2019-01-04 02:17:23 +01:00
2021-04-27 09:21:32 -04:00
2021-04-28 21:57:50 -04:00
2019-07-29 20:50:07 +02:00
2021-05-01 22:29:03 -04:00
2021-05-01 22:29:02 -04:00
2014-07-29 02:12:31 +00:00
2021-05-01 22:29:02 -04:00