aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter
Commit message (Collapse)AuthorAge
...
* tree-sitter: Put base languages first in queriesStephan Seitz2020-11-08
| | | | | | | | This reverts the handling of base languages to the old way how nvim-treesitter handled them. When a language extends a base language it usually wants to be able to overwrite queries. Related: https://github.com/nvim-treesitter/nvim-treesitter/issues/633
* Merge pull request #13178 from steelsojka/fix-empty-main-query-fileThomas Vigouroux2020-11-02
|\ | | | | fix(treesitter): account for no main query file
| * fix(treesitter): account for no main query fileSteven Sojka2020-10-28
| |
* | treesitter: add node:id()Björn Linse2020-11-01
|/
* treesitter: allow multiple highlighters per bufferThomas Vigouroux2020-10-12
|
* treesitter: allow custom parser for highlighterThomas Vigouroux2020-10-12
| | | | | | | | | | | Also allow to get parser ranges. This will be useful for language injection, allowing us to tweak the parser's ranges on the fly. Update runtime/lua/vim/treesitter.lua Co-authored-by: Paul Burlumi <paul@burlumi.com>
* treesitter: runtime queriesThomas Vigouroux2020-10-11
| | | | | | | | | | | | | Runtime queries just work like ftplugins, that is: - Queries in the `after` directory are sourced _after_ the "base" query - Otherwise, the last define query takes precedence. Queries can be found in the `queries` directory. Update runtime/lua/vim/treesitter/query.lua Co-authored-by: Paul Burlumi <paul@burlumi.com>
* api: multiple decoration providers at onceBjörn Linse2020-10-10
|
* treesitter: add string parser (#13008)Thomas Vigouroux2020-09-30
|
* luahl: global the luahlBjörn Linse2020-09-13
|
* fix: use luahl in treesitterThomas Vigouroux2020-09-13
|
* wip trying to fix the highlighterThomas Vigouroux2020-09-09
|
* treesitter: use new on_bytes interfaceBjörn Linse2020-09-09
| | | | | | | | | | This will significantly reduce the parsing work needed e.g. when rehighlighting after every keypress in insert mode. Also add safety check for tree-sitter trying to read past the end of a line. This can happen after we sent an incorrect buffer update.
* treesitter: revert wrong optimization in highlightsThomas Vigouroux2020-09-09
|
* Merge pull request #12858 from kyazdani42/fix/no-ts-hl-without-query-valueThomas Vigouroux2020-09-06
|\ | | | | treesitter: check hl group exists before passing it in nvim_get_hl_id_by_name
| * apply bfredl suggestionkiyan422020-09-06
| |
| * treesitter: check hl group exists before passing it in nvim_get_hl_id_by_namekiyan422020-09-05
| |
* | lint: just bit twiddlin'Björn Linse2020-09-06
| |
* | treesitter: simplify match_predsThomas Vigouroux2020-09-06
| |
* | treesitter: use lua-match? instead of match?Thomas Vigouroux2020-09-06
|/
* Merge pull request #12847 from nvim-treesitter/ts-list-predicatesBjörn Linse2020-09-04
|\ | | | | treesitter: allow to list supported predicates
| * treesitter: allow to list supported predicatesThomas Vigouroux2020-09-04
| |
* | treesitter: update to use buf_set_extmarkThomas Vigouroux2020-09-03
|/
* treesitter: avoid escaping complete query stringsStephan Seitz2020-08-31
| | | | | Escape "\\" only for `vim-match?` not for `match?` Fixes #12595
* treesitter: allow to force predicate additionThomas Vigouroux2020-08-13
|
* treesitter: add predicate negationThomas Vigouroux2020-08-13
|
* treesitter: add and test vim-match? predicateThomas Vigouroux2020-08-13
|
* treesitter: add contains? predicateThomas Vigouroux2020-08-13
|
* treesitter(docs): update and refresh docsThomas Vigouroux2020-08-13
|
* treesitter: refactor and use lua regexesThomas Vigouroux2020-08-13