aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/treesitter_spec.lua
Commit message (Collapse)AuthorAge
* tests: make treesitter its own categoryBjörn Linse2021-01-03
|
* feat(treesitter): add offset predicate for language injectionSteven Sojka2020-12-15
| | | | refactor(treesitter): add directives to queries
* Merge pull request #13450 from nvim-treesitter/fix-unknown-language-parserThomas Vigouroux2020-12-10
|\ | | | | fix(treesitter): don't throw an error for missing injected langs
| * fix(treesitter): don't throw an error for missing injected langsSteven Sojka2020-12-04
| |
* | fix(treesitter): incorrect method name callSteven Sojka2020-12-04
|/
* fix(treesitter): allow ranges in set_included_rangesThomas Vigouroux2020-11-23
|
* feat(treesitter): add language treeSteven Sojka2020-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 windowsThomas Vigouroux2020-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 Linse2020-11-01
|
* Merge pull request #12053 from tjdevries/tjdevries/nicer_validateTJ DeVries2020-10-17
|\ | | | | vim.validate(): include stacktrace in message
| * test/vim.validate(): assert normalized stacktraceJustin M. Keyes2020-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 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>
* treesitter: add string parser (#13008)Thomas Vigouroux2020-09-30
|
* fix: use luahl in treesitterThomas Vigouroux2020-09-13
|
* tests: disable hl glitch test for now, will be fixed in luahl (next PR)Björn Linse2020-09-10
|
* treesitter: revert wrong optimization in highlightsThomas Vigouroux2020-09-09
|
* tests: update query.list_predicates() testBjörn Linse2020-09-06
|
* treesitter: Use excplicit names in testsThomas Vigouroux2020-09-06
|
* treesitter: allow to list supported predicatesThomas Vigouroux2020-09-04
|
* Merge pull request #12814 from theHamsta/escape-queriesThomas Vigouroux2020-09-01
|\ | | | | treesitter: avoid escaping complete query strings
| * treesitter: avoid escaping complete query stringsStephan Seitz2020-08-31
| | | | | | | | | | Escape "\\" only for `vim-match?` not for `match?` Fixes #12595
* | treesitter: add node:field() to get field childrenThomas Vigouroux2020-09-01
| |
* | treesitter: allow to iterate over node childrenThomas Vigouroux2020-08-31
|/
* treesitter: add and test vim-match? predicateThomas Vigouroux2020-08-13
|
* treesitter: add contains? predicateThomas Vigouroux2020-08-13
|
* treesitter: refactor and use lua regexesThomas Vigouroux2020-08-13
|
* buffer_updates: emit valid old_byte_sizeThomas Vigouroux2020-07-21
| | | | | Test this using treesitter highlighting, which is based on this old_byte_size.
* treesitter: update test to show overlapping worksThomas Vigouroux2020-07-10
|
* treesitter: use single nodes in set_rangesThomas Vigouroux2020-06-29
| | | | fixup! treesitter: fix lint
* treesitter: separate tests into smaller piecesThomas Vigouroux2020-06-29
|
* treesitter: use nodes to mark rangesThomas Vigouroux2020-06-29
|
* treesitter: test newly added set_included_rangesThomas Vigouroux2020-06-29
|
* treesitter: fix testsThomas Vigouroux2020-06-03
|
* treesitter: update runtimeThomas Vigouroux2020-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 queriesBjörn Linse2020-02-26
|
* treesitter: add standard &rtp/parser/ search path for parsersBjörn Linse2020-02-07
|
* tree-sitter: implement query functionality and highlighting prototype ↵Björn Linse2019-12-22
| | | | [skip.lint]
* test/pcall_err(): truncate full paths, omit linenrJustin M. Keyes2019-10-26
| | | | ref #11271
* tree-sitter: improve and cleanup testsBjörn Linse2019-09-28
|
* tree-sitter: handle node equalityBjörn Linse2019-09-28
|
* tree-sitter: use "range" instead of "point_range" consistently in lua APIBjörn Linse2019-09-28
|
* tree-sitter: fix lint, delete "demo" plugin (replaced by functional tests)Björn Linse2019-09-28
|
* tree-sitter: improve parser API (shared parser between plugins)Björn Linse2019-09-28
|
* tree-sitter: rename tree_sitter => treesitter for consistencyBjörn Linse2019-09-28