Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | tests: make treesitter its own category | Björn Linse | 2021-01-03 |
| | |||
* | feat(treesitter): add offset predicate for language injection | Steven Sojka | 2020-12-15 |
| | | | | refactor(treesitter): add directives to queries | ||
* | 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 |
|/ | |||
* | 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: ignore some tests on windows | Thomas Vigouroux | 2020-11-03 |
| | | | | | Weirdl this test is failing, but can't reproduce locally, this is an unnecessary blocker for this PR. | ||
* | treesitter: add node:id() | Björn Linse | 2020-11-01 |
| | |||
* | Merge pull request #12053 from tjdevries/tjdevries/nicer_validate | TJ DeVries | 2020-10-17 |
|\ | | | | | vim.validate(): include stacktrace in message | ||
| * | test/vim.validate(): assert normalized stacktrace | Justin M. Keyes | 2020-10-05 |
| | | | | | | | | | | | | | | - The previous commit lost information in the tests. Instead, add some more "normalization" substitutions in pcall_err(), so that the general shape of the stacktrace is included in the asserted text. - Eliminate contains(), it is redundant with matches() | ||
* | | 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> | ||
* | treesitter: add string parser (#13008) | Thomas Vigouroux | 2020-09-30 |
| | |||
* | fix: use luahl in treesitter | Thomas Vigouroux | 2020-09-13 |
| | |||
* | tests: disable hl glitch test for now, will be fixed in luahl (next PR) | Björn Linse | 2020-09-10 |
| | |||
* | treesitter: revert wrong optimization in highlights | Thomas Vigouroux | 2020-09-09 |
| | |||
* | tests: update query.list_predicates() test | Björn Linse | 2020-09-06 |
| | |||
* | treesitter: Use excplicit names in tests | Thomas Vigouroux | 2020-09-06 |
| | |||
* | treesitter: allow to list supported predicates | Thomas Vigouroux | 2020-09-04 |
| | |||
* | Merge pull request #12814 from theHamsta/escape-queries | Thomas Vigouroux | 2020-09-01 |
|\ | | | | | treesitter: avoid escaping complete query strings | ||
| * | treesitter: avoid escaping complete query strings | Stephan Seitz | 2020-08-31 |
| | | | | | | | | | | Escape "\\" only for `vim-match?` not for `match?` Fixes #12595 | ||
* | | treesitter: add node:field() to get field children | Thomas Vigouroux | 2020-09-01 |
| | | |||
* | | treesitter: allow to iterate over node children | Thomas Vigouroux | 2020-08-31 |
|/ | |||
* | treesitter: add and test vim-match? predicate | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: add contains? predicate | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: refactor and use lua regexes | Thomas Vigouroux | 2020-08-13 |
| | |||
* | buffer_updates: emit valid old_byte_size | Thomas Vigouroux | 2020-07-21 |
| | | | | | Test this using treesitter highlighting, which is based on this old_byte_size. | ||
* | treesitter: update test to show overlapping works | Thomas Vigouroux | 2020-07-10 |
| | |||
* | treesitter: use single nodes in set_ranges | Thomas Vigouroux | 2020-06-29 |
| | | | | fixup! treesitter: fix lint | ||
* | treesitter: separate tests into smaller pieces | Thomas Vigouroux | 2020-06-29 |
| | |||
* | treesitter: use nodes to mark ranges | Thomas Vigouroux | 2020-06-29 |
| | |||
* | treesitter: test newly added set_included_ranges | Thomas Vigouroux | 2020-06-29 |
| | |||
* | treesitter: fix tests | Thomas Vigouroux | 2020-06-03 |
| | |||
* | treesitter: update runtime | Thomas Vigouroux | 2020-06-02 |
| | | | | | Since tree-sitter PR 615, predicates are not parsed the same. "Old" way of writing predicates is still supported. | ||
* | lua: add regex support, and `@match` support in treesitter queries | Björn Linse | 2020-02-26 |
| | |||
* | treesitter: add standard &rtp/parser/ search path for parsers | Björn Linse | 2020-02-07 |
| | |||
* | tree-sitter: implement query functionality and highlighting prototype ↵ | Björn Linse | 2019-12-22 |
| | | | | [skip.lint] | ||
* | test/pcall_err(): truncate full paths, omit linenr | Justin M. Keyes | 2019-10-26 |
| | | | | ref #11271 | ||
* | tree-sitter: improve and cleanup tests | Björn Linse | 2019-09-28 |
| | |||
* | tree-sitter: handle node equality | Björn Linse | 2019-09-28 |
| | |||
* | tree-sitter: use "range" instead of "point_range" consistently in lua API | Björn Linse | 2019-09-28 |
| | |||
* | tree-sitter: fix lint, delete "demo" plugin (replaced by functional tests) | Björn Linse | 2019-09-28 |
| | |||
* | tree-sitter: improve parser API (shared parser between plugins) | Björn Linse | 2019-09-28 |
| | |||
* | tree-sitter: rename tree_sitter => treesitter for consistency | Björn Linse | 2019-09-28 |