| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | fix(matches): better storage of nodes | Thomas Vigouroux | 2020-04-19 | 1 | -1/+1 | |
| | | | ||||||
| * | | feat: add locals to setup procedure | Thomas Vigouroux | 2020-04-19 | 2 | -5/+19 | |
| | | | ||||||
| * | | feat: first version of locals | Thomas Vigouroux | 2020-04-19 | 1 | -0/+82 | |
| |/ | | | | | | | Locals will be the main interface to treesitter, through some functions: get_definitions(bufnr) : returns all the definitions in bufnr get_scopes(bufnr): returns all definitions in bufnr get_references(bufnr): returns all references in bufnr | |||||
| * | add parser installer | kiyan42 | 2020-04-19 | 2 | -0/+79 | |
| | | ||||||
| * | feat: add parsers module and better match iter | Thomas Vigouroux | 2020-04-19 | 4 | -19/+100 | |
| | | | | | | | | | | | | | | | | 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. | |||||
| * | feat: add empty setup function | Thomas Vigouroux | 2020-04-18 | 1 | -0/+10 | |
| | | | | | | Will be used later to setup everything so that a language works properly in each situation. | |||||
| * | feat: add some utils to read queries | Thomas Vigouroux | 2020-04-18 | 1 | -0/+19 | |
