Christian Clason
ddb762f401
docs(treesitter): clean up and update treesitter.txt ( #20142 )
...
* add type annotations to code
* clean up and expand static documentation
* consistent use of tags for static and generated docs
2022-09-14 11:08:31 +02:00
Thomas Vigouroux
3c1d70f20b
feat(treesitter): allow customizing language symbol name
2022-08-22 15:34:10 +02:00
Christian Clason
aefdc6783c
chore: format runtime with stylua
2022-05-09 16:31:55 +02:00
Lewis Russell
f9080b24c4
fix(ts): escape lang when loading parsers ( #16668 )
...
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.
2022-01-27 10:42:59 +01: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
Santos Gallegos
947f9a04d4
treesitter: small fixes
...
Mostly typos I found while reading the code.
2021-02-07 01:27:38 -05:00
Steven Sojka
e15c5f58df
fix(treesitter): don't throw an error for missing injected langs
2020-12-04 16:56:29 -06:00
Thomas Vigouroux
18c0e77528
treesitter(docs): update and refresh docs
2020-08-13 20:30:15 +02:00
Thomas Vigouroux
613068071e
treesitter: refactor and use lua regexes
2020-08-13 20:30:15 +02:00