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
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags ( #893 )
...
Closes #236
2021-03-12 11:21:46 -05:00
elianiva
0bf8f58cd2
feat: use @ignore for comments and multiline strings
2021-03-01 23:28:53 +01:00
Santos Gallegos
72ecefc859
C/CPP: add injections for macros
2021-02-10 22:26:04 +01:00
Stephan Seitz
9eaf1840b3
highlights(cpp): fix constructor call highlighting
...
Address #883
2021-01-29 17:01:23 +01:00
elianiva
9184cf3953
feat: added more indent queries
2021-01-14 14:43:04 +01:00
Stephan Seitz
00ea65199e
C++ highlights: Fix destructor highlighting
...
Field is not "name"
2021-01-08 20:19:18 +01:00
John Drouhard
33ffdce690
c/cpp highlights: Fix field declarations and initializers
...
After a recent fix for #446 , declarations in class/struct definitions
stopped being marked as properties or methods. This fix will add
property highlights to field declarations, and method highlight to field
function declarations.
2020-11-20 14:03:06 +01:00
Stephan Seitz
289cdc9da8
Do not highlight Uppercase function as type
2020-11-18 21:54:04 +01:00
Stephan Seitz
3674ad89df
fix(predicates): Fix #446 : highlight property only if not a method
2020-11-18 21:54:04 +01:00
Stephan Seitz
1a62b97ccd
C++ highlights: highlight all kinds of optional parameters
...
declarator can be a identifier, a reference or a pointer
2020-10-13 19:48:42 +02: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
45397ebbd9
fix(highlights): Add TSNamespace highlight
...
Start adding highlights for
- C++
- Rust (including other scoped_identifier/scoped_type_identifier fixes)
- JS (only namespace_import)
Addresses #516
2020-10-10 15:31:51 +02:00
Stephan Seitz
3362f45196
Remove textobjects module
2020-10-04 14:20:20 +02:00
Stephan Seitz
7e3c4f8089
Add @keyword.operator for operators that are English words and add @exception for Java/JS
2020-09-19 07:30:49 +02:00
Stephan Seitz
bcf421b4e7
Fix #307 : Use and document TSVariable/TSVariableBuiltin in all languages
2020-09-14 18:27:20 +02:00
Santos Gallegos
50991e370b
Folds: rename query files to folds.scm to be consistent
...
We use plural names for all query files except folds.
2020-09-14 18:26:30 +02:00
Thomas Vigouroux
b90e520ccd
ci: fix wrong queries
2020-09-11 12:02:35 +02:00
Stephan Seitz
39d5b97bc5
feat(C++ highlights): highlight operator_name as function
2020-09-08 22:03:57 +02:00
Stephan Seitz
985c5def34
C/C++ locals: Deduplicate C++ locals contained in C
2020-09-08 22:02:39 +02:00
Stephan Seitz
8bc5d1ff3f
Add C++ folds and C comment/preproc folds
2020-09-08 22:02:39 +02:00
Stephan Seitz
32fdbe519e
feat(c/cpp highlights): highlight pointer/reference parameters
2020-08-24 09:54:26 +02:00
Stephan Seitz
627a1e558f
C++ highlights: Add initial support for attributes
2020-08-22 19:32:59 +02:00
Stephan Seitz
5cfa03f2bd
Textobjects: add swap feature
2020-08-17 17:44:40 +02:00
Steven Sojka
579c9936d6
feat(highlights): add is predicate
2020-08-16 09:04:07 -05:00
Stephan Seitz
c41b6e9197
Fix #286 : Highlight C++ raw_string_literal
2020-08-13 09:48:07 +02: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
95d3ce23c6
C++ highlights: Add decltype keyword
2020-07-20 09:00:07 +02:00
Stephan Seitz
58d52ea62d
C++ highlights: Highlight variadic parameters
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
b480d25155
feat(textobjects): Add start to include preceding things like documentation
2020-07-15 20:12:52 +02:00
Stephan Seitz
5e83307a43
Add C/C++ textobjects
2020-07-14 22:34:43 +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
Thomas Vigouroux
7bb0d7548d
highlight(c): fix booleans and types
2020-07-09 14:48:39 +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
2d224ac3bf
Fix cpp-highlights: wrong capture name used in regex
2020-06-26 19:37:12 +02:00
Stephan Seitz
8bc00cf02a
Change regexes in C/C++ highlights
2020-06-15 11:51:28 +02:00
Stephan Seitz
a5fc7b13cc
Update C/C++ highlights to new query syntax
2020-06-15 11:51:28 +02:00
Stephan Seitz
148ad160e8
Make =,~,! operators in C highlights
2020-06-15 11:51:28 +02:00
Stephan Seitz
1badceea81
Add cpp/locals.scm
2020-06-15 11:51:28 +02:00
Stephan Seitz
167ce6339f
Add C++ highlights.scm
2020-06-15 11:51:28 +02:00