summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/parsers.lua
AgeCommit message (Collapse)Author
2020-09-10Ocaml: fix parserSantos Gallegos
Paths were changed https://github.com/tree-sitter/tree-sitter-ocaml/pull/41
2020-09-08feat(parsers): add filetype PKGBUILDStephan Seitz
2020-09-02add scanner file for fennel parserTravonteD
2020-08-25Fix #292: Add parser links to README.mdStephan Seitz
2020-08-17some refacto, doc fixes and jsx querieskiyan42
- compute query language extensions *after* default ones (jsx after javascript) - remove outdated ts_utils functions from docs - add better regex detection to javascript - javascriptreact to use javascript queries - add javascript.jsx to javascript queries - write jsx.scm hl file
2020-08-16Add fennel supportTravonteD
2020-08-11perf: cache parser file list for performanceThomas Vigouroux
2020-08-11fix(locals): fix find definition implementation (#274)Steven Sojka
Co-authored-by: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>
2020-07-28rename query parser to query from schemeSteven Sojka
2020-07-28feat(parsers): add scheme parserSteven Sojka
2020-07-27configs: attach on unknown parsers tooThomas Vigouroux
2020-07-27Parsers: add reStructuredTextSantos Gallegos
2020-07-23Fix #213: Add parser for dartStephan Seitz
2020-07-16Add jsdoc parserStephan Seitz
2020-07-16Refactor locals.lua:Stephan Seitz
- shared query group stuff -> query.lua - local-specific stuff from ts_utils -> locals.lua
2020-07-16Refactor: Add parsers.get_buf_langStephan Seitz
2020-07-15fix(parsers): add additional typescript filetype to parserPierre Poupin
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/181
2020-07-15Use C++ parser for "cuda" filetypeStephan Seitz
2020-06-29add used_by key to parserskiyan42
Enables the use of multiple filetypes for one parser.
2020-06-21Fix bash parser urlSantos Gallegos
Not sure if this was on purpose or if it was a mistake
2020-06-20refactor: parser list and lang->ft/ft->langkiyan42
- move parser list in `parsers.lua` - most `ft` variable where changed to `lang`, `ft` is only used on autocmd binding, and lang is used for everything else. Functions have been defined to make the switch between `ft` and `lang`
2020-06-19refacto: remove buf_statekiyan42
- remove buf_state and related code - add get_node_at_cursor() - better incremental selection (code is localized)
2020-05-05feat: provide a statusline indicatorThomas Vigouroux
It will show the current branch at the cursor going the tree as such. root->node->subnode->leaf If an argument is provided to `statusline`, then the tree will be truncated as follows : ..->subnode->subnode
2020-04-19fix: prepare injections mechanismThomas Vigouroux
2020-04-19feat: add parsers module and better match iterThomas Vigouroux
The `parsers` module manages parsers for us, for now only in a really basic way. iter_prepared_mathes iters on an enhanced versions of the matches, where captures are directly accessible via their names to allow things like : ((itentifier) @def.first (identifier) @def.last) To be handled like this in lua: match.def.first match.def.last Also adds a `set!` predicate to allow setting data within the prepared match (see queries/lua/locals.scm) for examples.