aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/treesitter.txt
Commit message (Collapse)AuthorAge
* docs: regenerateii142022-08-11
|
* fix(treesitter): correct region for string parser (#18794)Christian Clason2022-06-02
| | | fixes injections for string parsers after https://github.com/neovim/neovim/commit/eab4d03a3264b2afaf803ed839fa25bc4e7acedd
* fix(treesitter): offset directive associates range with capture (#18276)Lewis Russell2022-05-28
| | | | | | | | | Previously the `offset!` directive populated the metadata in such a way that the new range could be attributed to a specific capture. #14046 made it so the directive simply stored just the new range in the metadata and information about what capture the range is based from is lost. This change reverts that whilst also correcting the docs.
* Merge pull request #18502 from drybalka/fix-languagetree-contains-descriptionChristian Clason2022-05-19
|\ | | | | treesitter: small improvements of languagetree.lua
| * docs: correct description of LanguageTree:contains()Denys2022-05-18
| |
* | build(lua2dox): add parenthesis around parameter types in documentation (#18532)dundargoc2022-05-12
|/ | | | | | | | | | This will check if the string after the variable in a @param is either "number", "string", "table", "boolean" and "function" and if so add a parenthesis around it. This will help separate the variable type with the following text. Had all our functions been annotated with emmylua then a more robust solution might have been preferable (such as always assuming the third string is parameter type without making any checks). I believe however this is a clear improvement over the current situation and will suffice for now.
* docs: typo fixes (#17859)dundargoc2022-04-15
| | | | | | | | | | Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com> Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com> Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: rwxd <rwxd@pm.me> Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
* docs: remove extra whitespacesDaiki Mizukami2022-03-14
|
* chore: fix typos (#17331)dundargoc2022-03-10
| | | | | | Co-authored-by: Hongyi Lyu <hongyi.lyu95@gmail.com> Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: notomo <notomo.motono@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* docs: treesitter.txt - fix overflowing lines, document ↵Chinmay Dalal2022-02-13
| | | | minimum_language_version (#17286)
* docs: regenerate [skip ci]marvim2022-01-17
|
* chore: fix typos (#16816)dundargoc2022-01-04
| | | | | | | 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>
* chore: fix typos (#16506)dundargoc2021-12-28
| | | | | | | | | Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Christoph Hasse <hassec@users.noreply.github.com> Co-authored-by: Alef Pereira <ealefpereira@gmail.com> Co-authored-by: AusCyber <willp@outlook.com.au> Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
* docs: regenerate (#16468)github-actions[bot]2021-12-15
| | | Co-authored-by: marvim <marvim@users.noreply.github.com>
* docs: regenerate (#16390)github-actions[bot]2021-11-27
| | | Co-authored-by: marvim <marvim@users.noreply.github.com>
* chore(lsp): clean up initialization process (#16369)Michael Lingelbach2021-11-21
| | | | | * send vim.NIL instead of not sending workspaceFolders * read fallback rootPath and rootUri from workspaceFolders * update documentation
* docs: regenerate #15545github-actions[bot]2021-10-05
|
* docs #15625Justin M. Keyes2021-09-10
| | | | | | | | | | | fix #12261 fix #15536 fix #15623 fix #15572 ref #14244 ref #15034 close #15555 close #14957
* docs(gen_vimdoc.py): ignore health.lua files #15614Gregory Anders2021-09-09
|
* docs: regenerateMichael Lingelbach2021-09-05
|
* feat(treesitter): add next, prev sibling methodDylan Kendal2021-08-20
| | | | | Add tsnode methods to change to the next, previous, named or unnamed nodes.
* doc(treesitter): Fix typosBastian Ahrens2021-08-01
|
* docs: regeneratemarvim2021-07-26
|
* Merge pull request #15090 from kraftwerk28/masterThomas Vigouroux2021-07-26
|\ | | | | docs: fix typo in treesitter.txt
| * docs: fix typo in treesitter.txtkraftwerk282021-07-14
| |
* | docs(ts): add documentation for listing fnsThomas Vigouroux2021-07-25
| |
* | doc: group documentation of predicates and directivesStephan Seitz2021-07-24
| |
* | treesitter: add query.list_directivesStephan Seitz2021-07-24
| |
* | docs(tree-sitter): document highlight priorityStephan Seitz2021-07-22
|/
* docs(treesitter): mention query help pageThomas Vigouroux2021-06-16
|
* docs(treesitter): tidy docs and remove legacy informationThomas Vigouroux2021-06-16
|
* docs: regeneratemarvim2021-06-02
|
* 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.
* docs: Treesitter (#13260)TJ DeVries2021-05-01
| | | | | | | | | * doc & fixes: Generate treesitter docs * fixup to treesitter-core * docs(treesitter): fix docs for most functions Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
* feat(treesitter): allow injections to be configured through directivesSteven Sojka2021-04-02
|
* ts: Add language version to vim.treesitter (#14255)TJ 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.
* feat(treesitter): add offset predicate for language injectionSteven Sojka2020-12-15
| | | | refactor(treesitter): add directives to queries
* Fix typo on treesitter.txt help pageLeandro Ostera2020-12-07
|
* fix(treesitter): docs reflect parser:parse()bkegley2020-11-24
| | | Update docs to document that `parser:parse()` now returns a table of trees
* 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>
* Update runtime/doc/treesitter.txtLuis Piloto2020-11-05
| | | Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
* doc: Fix treesitter doc PR.ElPiloto2020-11-04
|
* doc: Supplement documentation for treesitter.ElPiloto2020-11-04
| | | | | | | | - Describe query components (capture, match, pattern). Not well-described in tree-sitter documentation. - Describe Query() object. Not actually described anywhere in documenation.
* treesitter: separate tree and parserThomas Vigouroux2020-11-04
| | | | While this might sound silly, it is needed for further improvements.
* treesitter: add node:id()Björn Linse2020-11-01
|
* docs: Move treesitter docs in their own fileThomas Vigouroux2020-09-14