diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-04-19 09:45:54 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-04-19 09:45:54 +0200 |
| commit | 2526baf4cc5ea540188345c856adb162ce102674 (patch) | |
| tree | 6bdf2bb238354161c484e92e575a30a7d77b7d09 /parser | |
| parent | 5897d72b075991e4de5876c918be186d4551cf12 (diff) | |
feat: add parsers module and better match iter
The `parsers` module manages parsers for us, for now only in a really
basic way.
iter_prepared_mathes iters on an enhanced versions of the matches, where
captures are directly accessible via their names to allow things like :
((itentifier) @def.first (identifier) @def.last)
To be handled like this in lua:
match.def.first
match.def.last
Also adds a `set!` predicate to allow setting data within the prepared
match (see queries/lua/locals.scm) for examples.
Diffstat (limited to 'parser')
0 files changed, 0 insertions, 0 deletions
