TravonteD
439b58d92c
add scanner file for fennel parser
2020-09-02 06:59:42 +02:00
Stephan Seitz
7c9ffe9e19
Fix #292 : Add parser links to README.md
2020-08-25 14:58:28 +02:00
kiyan42
20e448882e
some refacto, doc fixes and jsx queries
...
- 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-17 17:48:33 +02:00
TravonteD
72905524c2
Add fennel support
2020-08-16 20:40:33 -04:00
Thomas Vigouroux
ba3167a1a4
perf: cache parser file list for performance
2020-08-11 20:21:22 +02:00
Steven Sojka
4f2689c501
fix(locals): fix find definition implementation ( #274 )
...
Co-authored-by: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>
2020-08-11 09:53:05 +02:00
Steven Sojka
bd1d1adb35
rename query parser to query from scheme
2020-07-28 18:30:24 +02:00
Steven Sojka
aaa24cc47a
feat(parsers): add scheme parser
2020-07-28 08:28:36 -05:00
Thomas Vigouroux
572a4a964b
configs: attach on unknown parsers too
2020-07-27 15:18:48 +02:00
Santos Gallegos
6f01384cb2
Parsers: add reStructuredText
2020-07-27 09:16:26 +02:00
Stephan Seitz
cd507463ac
Fix #213 : Add parser for dart
2020-07-23 09:08:22 +02:00
Stephan Seitz
bf1475df75
Add jsdoc parser
2020-07-16 13:16:18 +02:00
Stephan Seitz
8cf2dc7f9a
Refactor locals.lua:
...
- shared query group stuff -> query.lua
- local-specific stuff from ts_utils -> locals.lua
2020-07-16 09:34:31 +02:00
Stephan Seitz
a4e2692c7b
Refactor: Add parsers.get_buf_lang
2020-07-16 09:34:31 +02:00
Pierre Poupin
7037f39ae9
fix(parsers): add additional typescript filetype to parser
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/181
2020-07-15 22:32:41 +02:00
Stephan Seitz
f5f5e3ec51
Use C++ parser for "cuda" filetype
2020-07-15 16:26:34 +02:00
kiyan42
7f6f7596da
add used_by key to parsers
...
Enables the use of multiple filetypes for one parser.
2020-06-29 17:18:22 +02:00
Santos Gallegos
171c7e4bcf
Fix bash parser url
...
Not sure if this was on purpose or if it was a mistake
2020-06-21 13:47:56 -05:00
kiyan42
df17a48c85
refactor: parser list and lang->ft/ft->lang
...
- 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-20 12:31:52 +02:00
kiyan42
38af29a912
refacto: remove buf_state
...
- remove buf_state and related code
- add get_node_at_cursor()
- better incremental selection (code is localized)
2020-06-19 13:45:33 +02:00
Thomas Vigouroux
7682a1a49f
feat: provide a statusline indicator
...
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-05-05 20:06:45 +02:00
Thomas Vigouroux
d169c0614c
fix: prepare injections mechanism
2020-04-19 17:55:38 +02:00
Thomas Vigouroux
2526baf4cc
feat: add parsers module and better match iter
...
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.
2020-04-19 09:45:54 +02:00