Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Merge pull request #13450 from nvim-treesitter/fix-unknown-language-parser | Thomas Vigouroux | 2020-12-10 |
|\ | | | | | fix(treesitter): don't throw an error for missing injected langs | ||
| * | fix(treesitter): don't throw an error for missing injected langs | Steven Sojka | 2020-12-04 |
| | | |||
* | | fix(treesitter): incorrect method name call | Steven Sojka | 2020-12-04 |
|/ | |||
* | Merge pull request #13357 from vigoux/luahl-priority | Björn Linse | 2020-11-25 |
|\ | | | | | feat(luahl): add priority mechanism | ||
| * | feat(luahl): add priority mechanism | Thomas Vigouroux | 2020-11-25 |
| | | | | | | | | | | Base priority is 0x1000, in order to stay kinda backward compatible. Also set tree-sitter default highlight to 100 (middle-ish value) | ||
* | | languagetree: call changedtree callback per tree | Thomas Vigouroux | 2020-11-24 |
| | | | | | | | | Also fix a typo | ||
* | | fix(treesitter): allow ranges in set_included_ranges | Thomas Vigouroux | 2020-11-23 |
|/ | |||
* | feat(treesitter): add language tree | Steven Sojka | 2020-11-23 |
| | | | | | | | | | | | | | Implement the LanguageTree structure to enable language injection. This is done be removing the old Parser metatable and replacing by the new structure, with the same API (almost). Some noticeable differences : - `parser:parse()` now returns a table of trees - There is no incremental parsing for child (injected) languages Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com> | ||
* | tree-sitter: Put base languages first in queries | Stephan Seitz | 2020-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-file | Thomas Vigouroux | 2020-11-02 |
|\ | | | | | fix(treesitter): account for no main query file | ||
| * | fix(treesitter): account for no main query file | Steven Sojka | 2020-10-28 |
| | | |||
* | | treesitter: add node:id() | Björn Linse | 2020-11-01 |
|/ | |||
* | treesitter: allow multiple highlighters per buffer | Thomas Vigouroux | 2020-10-12 |
| | |||
* | treesitter: allow custom parser for highlighter | Thomas Vigouroux | 2020-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 queries | Thomas Vigouroux | 2020-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 once | Björn Linse | 2020-10-10 |
| | |||
* | treesitter: add string parser (#13008) | Thomas Vigouroux | 2020-09-30 |
| | |||
* | luahl: global the luahl | Björn Linse | 2020-09-13 |
| | |||
* | fix: use luahl in treesitter | Thomas Vigouroux | 2020-09-13 |
| | |||
* | wip trying to fix the highlighter | Thomas Vigouroux | 2020-09-09 |
| | |||
* | treesitter: use new on_bytes interface | Björn Linse | 2020-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 highlights | Thomas Vigouroux | 2020-09-09 |
| | |||
* | Merge pull request #12858 from kyazdani42/fix/no-ts-hl-without-query-value | Thomas Vigouroux | 2020-09-06 |
|\ | | | | | treesitter: check hl group exists before passing it in nvim_get_hl_id_by_name | ||
| * | apply bfredl suggestion | kiyan42 | 2020-09-06 |
| | | |||
| * | treesitter: check hl group exists before passing it in nvim_get_hl_id_by_name | kiyan42 | 2020-09-05 |
| | | |||
* | | lint: just bit twiddlin' | Björn Linse | 2020-09-06 |
| | | |||
* | | treesitter: simplify match_preds | Thomas Vigouroux | 2020-09-06 |
| | | |||
* | | treesitter: use lua-match? instead of match? | Thomas Vigouroux | 2020-09-06 |
|/ | |||
* | Merge pull request #12847 from nvim-treesitter/ts-list-predicates | Björn Linse | 2020-09-04 |
|\ | | | | | treesitter: allow to list supported predicates | ||
| * | treesitter: allow to list supported predicates | Thomas Vigouroux | 2020-09-04 |
| | | |||
* | | treesitter: update to use buf_set_extmark | Thomas Vigouroux | 2020-09-03 |
|/ | |||
* | treesitter: avoid escaping complete query strings | Stephan Seitz | 2020-08-31 |
| | | | | | Escape "\\" only for `vim-match?` not for `match?` Fixes #12595 | ||
* | treesitter: allow to force predicate addition | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: add predicate negation | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: add and test vim-match? predicate | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: add contains? predicate | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter(docs): update and refresh docs | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: refactor and use lua regexes | Thomas Vigouroux | 2020-08-13 |