aboutsummaryrefslogtreecommitdiff
path: root/test/functional/treesitter
Commit message (Collapse)AuthorAge
* feat(ui): allow conceal to be defined in decorationsbfredl2022-03-20
| | | | | | Unlike syntax conceal, change highlight of concealed char Can be used in tree-sitter using "conceal" metadata.
* feat(tree-sitter): allow Atom-style capture fallbacks (#14196)Stephan Seitz2022-02-16
| | | | | | | | | This allows falling back to `@definition` when we have no mapping `@definition.fancy-specialization`. This behavior is described in tree-sitter's documentation (https://tree-sitter.github.io/tree-sitter/syntax-highlighting#theme). Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/738
* fix: append test for checking zero width node rangekevinhwang912022-02-11
|
* fix(ts): escape lang when loading parsers (#16668)Lewis Russell2022-01-27
| | | | | | | | | | | When trying to load a language parser, escape the value of the language. With language injection, the language might be picked up from the buffer. If this value is erroneous it can cause `nvim_get_runtime_file` to hard error. E.g., the markdown expression `~~~{` will extract '{' as a language and then try to get the parser using `parser/{*` as the pattern.
* perf(treesitter): cache query parsingStephan Seitz2022-01-06
|
* feat(ts): add support for multiline nodes in get_node_text (#14999)Mathias Fußenegger2021-12-12
| | | | | | Based on https://github.com/neovim/neovim/pull/14445 This extends `vim.treesitter.query.get_node_text` to return the text that spans a node's range even if start_row ~= end_row.
* fix(tests): adapt parser_spec test to tree-sitter bumpChristian Clason2021-11-23
| | | | | Change query to include anonymous nodes (`(_)` -> `[_]`) and use new syntax (`{vim,lua}.match?`->`#{vim,lua}.match?`)
* feat(treesitter): add next, prev sibling methodDylan Kendal2021-08-20
| | | | | Add tsnode methods to change to the next, previous, named or unnamed nodes.
* Merge pull request #15283 from jamessan/pending-c-parsersThomas Vigouroux2021-08-06
|\ | | | | test(treesitter): skip all parsers tests if parsers aren't installed
| * test(treesitter): skip all parsers tests if parsers aren't installedJames McCoy2021-08-05
| |
* | treesitter: add query.list_directivesStephan Seitz2021-07-24
| |
* | feat(treesitter): allow to set highlight priority for queriesStephan Seitz2021-07-22
|/
* treesitter: add predicate "any-of?" (#14344)Raymond W. Ko2021-05-14
| | | | | | | | | | | | For the case of Clojure and other Lisp syntax highlighting, it is necessary to create huge regexps consisting of hundreds of symbols with the pipe (|) character. To make things more difficult, these Lisp symbols sometimes consists of special characters that are themselves part of special regexp characters like '*'. In addition to being difficult to maintain, it's performance is suboptimal. This patch introduces a new predicate to perform 'source' matching in amortized constant time. This is accomplished by compiling a hash table on the first use.
* treesitter: do not escape in match? (#14382)Stephan Seitz2021-05-11
|
* Ensure there is a nested table allocated for #set!derekstride2021-04-27
| | | | | | | | Fixes the following bug: ``` test/functional/helpers.lua:107: Error executing lua: vim/treesitter/query.lua:256: attempt to index a nil value ```
* Merge pull request #14046 from ↵Thomas Vigouroux2021-04-14
|\ | | | | | | | | nvim-treesitter/feature/language-tree-directive-config feat(treesitter): allow injections to be configured through directives
| * feat(treesitter): allow injections to be configured through directivesSteven Sojka2021-04-02
| |
* | feat(ts): include parser ABI version in checkhealthThomas Vigouroux2021-04-06
|/
* fixup: remove unused test functionTJ DeVries2021-03-31
|
* ts: Add per-language highlight linksTJ DeVries2021-03-31
|
* fixup: Add a test and it is so prettyTJ DeVries2021-03-30
|
* treesitter: default start and end row when omitted“jvgrootveld”2021-01-15
| | | | | | | | | | | Add support for default start and end row when omitted in the query:iter_captures and query:iter_matches functions. When the start and end row values are omitted, the values of the given node is used. The end row value is incremented by 1 to include the node end row in the match. Updated tests and docs accordingly.
* buffer updates: mark sorted region as changed.Björn Linse2021-01-03
| | | | | NB: currently this invalidates all extmarks inside the region. Later on within-line extmarks could be preserved
* tests: make treesitter its own categoryBjörn Linse2021-01-03