Commit graph

25 commits

Author SHA1 Message Date
Phạm Huy Hoàng
722617e672 refactor(format): drop extra indentation for field 2024-03-21 15:51:26 +01:00
Phạm Huy Hoàng
62b0bb4f24 feat(format): extra newline after modeline 2024-02-29 23:05:30 +09:00
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
Christian Clason
5b90ea2aba feat(locals)!: switch to upstream captures 2024-01-19 16:58:37 +01:00
Christian Clason
e58bbe83f9 lint(locals): use #set! to keep query linter happy 2023-06-22 08:39:17 +02:00
John Drouhard
300ba8d5a5 feat(cpp): simplify namespace query rules now that parser is a bit more consistent 2023-03-27 10:20:38 -04:00
Stephan Seitz
3ee34749bc locals(cpp): add support for concepts 2022-01-16 22:19:34 +01:00
Dundar Göc
6a4fdb317d chore: fix typos 2021-11-02 23:47:48 +01:00
John Drouhard
536179c8e2 cpp: fix locals.scm from breaking change in tree-sitter-cpp 2021-09-26 11:20:09 +02:00
Stephan Seitz
0894b5d0bd Fix C++ locals 2021-03-16 18:52:43 +01:00
Stephan Seitz
080b6476fe Fix ocaml queries 2021-03-16 18:52:43 +01:00
Stephan Seitz
532a369b32 Mark parsers with NPM dependency 2021-03-16 18:52:43 +01:00
Thomas Vigouroux
c055899dc0 feat(queries): modeline mechanism for base langs
This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189

This behaves like modelines and remove the use of the base_language map.
Also, this allows to fine-tune what we actually want to include per
query, which is better IMO.
2020-10-11 19:09:22 +02:00
Stephan Seitz
985c5def34 C/C++ locals: Deduplicate C++ locals contained in C 2020-09-08 22:02:39 +02:00
Steven Sojka
579c9936d6 feat(highlights): add is predicate 2020-08-16 09:04:07 -05:00
Stephan Seitz
1301884e97 C++: locals template_declaration must define their own scope in which the template arguments are valid 2020-07-27 15:20:04 +02:00
Stephan Seitz
496b175d05 C++ locals: add variadic as @definition.var 2020-07-20 09:00:07 +02:00
Stephan Seitz
58c6d2a73f Attach kind of reference to query result instead of using subfields
This makes smart_rename work also for types out of the box and we don't
need to search for the path of actual node.
2020-07-20 08:55:53 +02:00
Stephan Seitz
faa413287c Cpp locals: Fix syntax 2020-07-13 23:29:15 +02:00
Stephan Seitz
a027ffbe82 Add rust locals.scm 2020-07-13 22:25:33 +02:00
Stephan Seitz
f803c74ebc C/C++ highlights: Small improvements for type definitions 2020-07-13 21:29:49 +02:00
Stephan Seitz
63c1853674 C/C++ highlights: update to new syntax
This changed the highlight of "switch" to conditional and of "break" to repeat.
2020-07-05 19:48:02 +02:00
Stephan Seitz
07cd0b4d8c C++ locals: Add reference_declarator (analogous to pointer_declarator for C locals) 2020-07-04 21:03:48 +02:00
Stephan Seitz
a5fc7b13cc Update C/C++ highlights to new query syntax 2020-06-15 11:51:28 +02:00
Stephan Seitz
1badceea81 Add cpp/locals.scm 2020-06-15 11:51:28 +02:00