Chinmay Dalal
e481901748
docs: treesitter.txt - fix overflowing lines, document minimum_language_version ( #17286 )
2022-02-13 14:43:25 +01:00
dundargoc
0b0c4f7dfa
chore: fix typos ( #16816 )
...
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com >
Co-authored-by: Gregory Anders <greg@gpanders.com >
Co-authored-by: Sebastian Volland <seb@baunz.net >
Co-authored-by: Lewis Russell <lewis6991@gmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-01-04 11:07:40 -07:00
dundargoc
caa6992a10
chore: fix typos ( #16361 )
...
Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: István Donkó <istvan.donko@gmail.com >
Co-authored-by: Julian Berman <Julian@GrayVines.com >
Co-authored-by: bryant <bryant@users.noreply.github.com >
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com >
Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com >
Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com >
Co-authored-by: Jesse Wertheim <jaawerth@gmail.com >
Co-authored-by: dm1try <me@dmitry.it >
Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl >
Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com >
Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: István Donkó <istvan.donko@gmail.com >
Co-authored-by: Julian Berman <Julian@GrayVines.com >
Co-authored-by: bryant <bryant@users.noreply.github.com >
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com >
Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com >
Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com >
Co-authored-by: Jesse Wertheim <jaawerth@gmail.com >
Co-authored-by: dm1try <me@dmitry.it >
Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl >
Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com >
2021-11-27 11:10:48 -05:00
Gregory Anders
c2a211b8e3
docs: make Lua docstrings consistent #15255
...
The official developer documentation in in :h dev-lua-doc specifies to
use "--@" for special/magic tokens. However, this format is not
consistent with EmmyLua notation (used by some Lua language servers) nor
with the C version of the magic docstring tokens which use three comment
characters.
Further, the code base is currently split between usage of "--@",
"---@", and "--- @". In an effort to remain consistent, change all Lua
magic tokens to use "---@" and update the developer documentation
accordingly.
2021-08-22 13:55:28 -07:00
TJ DeVries
27da5511a0
docs: Treesitter ( #13260 )
...
* doc & fixes: Generate treesitter docs
* fixup to treesitter-core
* docs(treesitter): fix docs for most functions
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com >
2021-05-01 08:19:48 -04:00
Steven Sojka
8bea39f372
feat(treesitter): allow injections to be configured through directives
2021-04-02 12:48:16 -05:00
Simon Hauser
6b7cc45c48
fix: treesitter languagetree crash when using telescope buffer previewer ( #13986 )
2021-02-23 21:39:35 -05:00
Björn Linse
94622ca66b
buffer updates: add on_reload callback and handle it in treesitter parser
2021-02-10 18:58:46 +01:00
Björn Linse
fa5f583981
treesitter: propagate on_detach event properly
2021-02-10 18:57:49 +01:00
Santos Gallegos
947f9a04d4
treesitter: small fixes
...
Mostly typos I found while reading the code.
2021-02-07 01:27:38 -05:00
Steven Sojka
ed558e269a
fix(languagetree): use tree nodes instead of regions in contains
2021-01-20 06:52:47 -06:00
Steven Sojka
929f194145
feat(treesitter): add offset predicate for language injection
...
refactor(treesitter): add directives to queries
2020-12-15 07:03:47 -06:00
Thomas Vigouroux
99007bcc12
Merge pull request #13450 from nvim-treesitter/fix-unknown-language-parser
...
fix(treesitter): don't throw an error for missing injected langs
2020-12-10 11:12:39 +01:00
Steven Sojka
e15c5f58df
fix(treesitter): don't throw an error for missing injected langs
2020-12-04 16:56:29 -06:00
Steven Sojka
2985c17867
fix(treesitter): incorrect method name call
2020-12-04 16:15:47 -06:00
Thomas Vigouroux
e6d1656831
languagetree: call changedtree callback per tree
...
Also fix a typo
2020-11-24 16:53:03 +01:00
Thomas Vigouroux
52d76f0a32
fix(treesitter): allow ranges in set_included_ranges
2020-11-23 15:09:32 +01:00
Steven Sojka
1a631026a9
feat(treesitter): add language tree
...
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 >
2020-11-23 08:06:17 +01:00