Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | refactor: reformat with uncrustify #15736 | dundargoc | 2021-09-20 |
| | | | | * fix function parameter comments * remove space after star in function names | ||
* | refactor: format with uncrustify #15722 | dundargoc | 2021-09-19 |
| | |||
* | Merge pull request #15434 from Dkendal/feature-lua-treesitter-sibling | Thomas Vigouroux | 2021-08-23 |
|\ | | | | | feat(treesitter): add next, prev sibling method | ||
| * | feat(treesitter): add next, prev sibling method | Dylan Kendal | 2021-08-20 |
| | | | | | | | | | | Add tsnode methods to change to the next, previous, named or unnamed nodes. | ||
* | | refactor(map): remove extra-allocating map_new/map_free functions | Björn Linse | 2021-08-22 |
| | | | | | | | | | | | | | | | | | | | | Note: the reason for removing them is not that there after this refactor is no use of them, but rather that having them available is an anti-pattern: they manange an _extra_ heap allocation which has nothing to do with the functionality of the map itself (khash manages the real buffers internally). In case there happens to be a reason to allocate the map structure itself later, this should be made explicit using xcalloc/xfree calls. | ||
* | | refactor(api): remove unneccesary indirection around handles | Björn Linse | 2021-08-22 |
|/ | | | | | These things are just maps to pointers, no need to perform a huge song and dance around it. | ||
* | chore: use codespell to spell check #15016 | dundargoc | 2021-07-07 |
| | |||
* | fixup(ts): put ts_query_cursor_set_match_limit behind feature guard | Christian Clason | 2021-06-29 |
| | | | | | | | | | | | | | | This is a fixup for #14915, which used the above-mentioned call to restore the behavior of the pre-release version of tree-sitter to that of 0.19.5. However, this function was introduced after 0.19.5, breaking distro builds that link against 0.19.5 instead of the tag specified in neovim's build script. Now the function should only be called when it is available _and_ needed. Once tree-sitter is bumped to 0.19.6 (when this is released), this guard can be removed again. Fixes #14923 (among others) | ||
* | fix(treesitter): set match limit for query cursors | Christian Clason | 2021-06-26 |
| | | | | | | | | | | | | Upstream tree-sitter raised the number of pending matches for a query cursor from 32 to 64k in <https://github.com/tree-sitter/tree-sitter/commit/ 78010722a49ed6224c773c22b0d25a8c9fbde584>, which severely impacted performance for some highlighting queries. This uses the `ts_query_cursor_set_match_limit` function introduced in <https://github.com/tree-sitter/tree-sitter/commit/ cd96552448a6e0d4eb27fc54b27cb5130c4b6f76> to manually set this back to the old default of 32. Fixes #14897 | ||
* | Merge pull request #14200 from teto/treesitter-checkhealth | Marco Hinz | 2021-04-07 |
|\ | | | | | feat: treesitter checkhealth | ||
| * | feat(ts): include parser ABI version in checkhealth | Thomas Vigouroux | 2021-04-06 |
| | | |||
* | | Merge pull request #14039 from theHamsta/fix-field-introspection | Thomas Vigouroux | 2021-04-02 |
|\ \ | |/ |/| | Fix(treesitter): Make treesitter.inspect_lang include last field name | ||
| * | Fix(treesitter): Make treesitter.inspect_lang include last field name | Stephan Seitz | 2021-03-23 |
| | | |||
* | | ts: Add language version to vim.treesitter (#14255) | TJ DeVries | 2021-03-30 |
|/ | |||
* | chore(ts): show grammar that triggers the error | Matthieu Coudron | 2021-03-16 |
| | | | | to help debugging | ||
* | fix(treesitter): allow ranges in set_included_ranges | Thomas Vigouroux | 2020-11-23 |
| | |||
* | treesitter: refactor some things | Thomas Vigouroux | 2020-11-23 |
| | |||
* | fix: NULL segfaults brought to you by @vigoux | TJ DeVries | 2020-11-18 |
| | |||
* | treesitter: separate tree and parser | Thomas Vigouroux | 2020-11-04 |
| | | | | While this might sound silly, it is needed for further improvements. | ||
* | Merge pull request #13192 from bfredl/nodeid | Björn Linse | 2020-11-01 |
|\ | | | | | ] treesitter: add node:id() | ||
| * | treesitter: add node:id() | Björn Linse | 2020-11-01 |
| | | |||
* | | treesitter: fix wrong string formatting | Thomas Vigouroux | 2020-11-01 |
| | | |||
* | | tree-sitter: error out when parsing fails | Thomas Vigouroux | 2020-11-01 |
|/ | | | | | This can happen when there is ABI mismatches, and removes the assumption parsing alwasy succeeds (which is wrong). | ||
* | 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: check language ABI version on load | Thomas Vigouroux | 2020-10-08 |
| | | | | This is will avoid some issues at runtime. | ||
* | treesitter: add string parser (#13008) | Thomas Vigouroux | 2020-09-30 |
| | |||
* | 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: 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: call bufload before parsing (#12603) | Thomas Vigouroux | 2020-07-10 |
| | |||
* | treesitter: use single nodes in set_ranges | Thomas Vigouroux | 2020-06-29 |
| | | | | fixup! treesitter: fix lint | ||
* | treesitter: fix lint | Thomas Vigouroux | 2020-06-29 |
| | |||
* | treesitter: use nodes to mark ranges | Thomas Vigouroux | 2020-06-29 |
| | |||
* | treesitter: fix some clint errors | Thomas Vigouroux | 2020-06-29 |
| | | | | Also fixes some mismatches on the name of the function | ||
* | treesitter: test newly added set_included_ranges | Thomas Vigouroux | 2020-06-29 |
| | |||
* | treesitter: add set_included_ranges to the parser | Thomas Vigouroux | 2020-06-29 |
| | | | | This is the first step towards language injection using treesitter. | ||
* | treesitter: simplify puhstree call process | Thomas Vigouroux | 2020-06-23 |
| | |||
* | treesitter: check for integer overflow (#12135) | Thomas Vigouroux | 2020-04-22 |
| | | | | | | | Sometimes treesitter calls for an invalid column within a line, checking that the column is actually valid and forcing the value avoids an integer overflow and an infinite sequence of invalid reads. Fixes #12131 | ||
* | 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] | ||
* | 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: cleanup tree refcounting | Björn Linse | 2019-09-28 |
| | |||
* | tree-sitter: inspect language | Björn Linse | 2019-09-28 |
| | |||
* | tree-sitter: add some more API | Björn Linse | 2019-09-28 |
| | |||
* | tree-sitter: style | Björn Linse | 2019-09-28 |
| | |||
* | tree-sitter: use standard luaL_newmetatable and luaL_checkudata pattern | Björn Linse | 2019-09-28 |
| | |||
* | tree-sitter: rename tree_sitter => treesitter for consistency | Björn Linse | 2019-09-28 |