Aaron Rancsik
4e21b50fbd
highlights(cpp): auto as @type.builtin
2022-12-01 15:08:07 +01:00
ObserverOfTime
79705a1f80
highlights(cpp): use more specific groups
2022-11-26 13:17:51 +02:00
mliszcz
276718c245
highlights(cpp): add alternative operator names
...
These keywords are now supported by the parser.
See: https://github.com/tree-sitter/tree-sitter-cpp/pull/179
2022-10-11 14:37:14 +02:00
lfenzo
576287ac84
Split func/method definition from calls in C++ highlighting queries
2022-08-03 12:05:30 -07:00
Stephan Seitz
f9176e560c
highlights(c/cpp): move attributes to C (again)
...
Let's hope that this time the C tests pass, also for the built-in C
parser.
2022-07-28 08:24:51 +02:00
Stephan Seitz
a4f9539a0c
highlights(cpp): make "::" @punctuation.delimiter
...
Fixes #2902
2022-05-07 13:30:36 +02:00
Fabian Viöl
68c36cc59f
highlights(cpp): Add operator cast highlight
...
See https://en.cppreference.com/w/cpp/language/cast_operator for
reference.
2022-03-02 11:00:01 +01:00
Fabian Viöl
4990db79a8
highlights(cpp): Highlight method with nested qualified_identifier
...
so that methods like these are correctly highlighted
```cpp
class A {
class B {
void foo();
};
};
void A::B::foo() {
// ^^^
}
```
This only increases the nesting level by one.
AFAIK abritrary nesting is difficult to do with current queries.
But this nesting is a pretty common case
2022-02-09 21:35:00 +01:00
Stephan Seitz
e4675bc410
highlights(c/cpp): highlight case labels as constants
2022-01-29 13:11:56 +01:00
Stephan Seitz
974e2181a0
highlights(cpp): fix function highlighting of Foo::bar::baz()
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2396
2022-01-29 12:40:35 +01:00
Stephan Seitz
788814fb06
highlights(cpp): add support for "<=>", "constinit", "consteval"
2022-01-17 16:52:45 +01:00
Stephan Seitz
db01c82b08
highlights(cpp): add support for concepts
...
Requires https://github.com/tree-sitter/tree-sitter-cpp/pull/138
2022-01-16 22:19:34 +01:00
Lewis Russell
011ac894ec
Prefer lua-match over match
...
as string.find is much quicker than vim.regex:match*
2021-11-23 10:02:06 +01:00
Stephan Seitz
b6dcb81939
highlights(cpp): highlight literal_suffix as @operator
2021-10-20 09:16:07 +02:00
John Drouhard
e643eb5dbd
cpp: highlight template method identifier as a method
2021-09-27 00:09:17 +02:00
John Drouhard
662f3aaadd
cpp: update lockfile.json and fix for breaking changes
2021-09-26 11:20:09 +02:00
Stephan Seitz
440d666b68
test
2021-09-17 22:03:47 +02:00
Stephan Seitz
37d93ec017
highlights(c/cpp): react to upstream changes to attributes
2021-09-17 22:03:47 +02:00
Stephan Seitz
1092b6ba3a
highlights(cpp): add support for coroutines
2021-09-17 22:03:47 +02:00
Stephan Seitz
dff252d32a
highlights(cpp): add static_assert
2021-07-06 18:48:08 +02:00
Alex Chen
3b516c8e2b
c++ highlights: don't capture all identifiers with uppercase initials as types
2021-06-10 08:16:53 +02:00
Stephan Seitz
506e998da2
highlights(c/c++): "..." also exists in C (variadic macros)
2021-05-18 07:07:16 +02:00
Stephan Seitz
98b9e271ba
highlights(cpp): highlight namespaces in using declartions
2021-04-26 01:29:22 +02:00
Stephan Seitz
19efc3d8f3
highlights(cpp): reduce number of regexes
2021-04-26 01:18:28 +02:00
Stephan Seitz
b79e400a51
highlights(cpp): avoid overwriting C CONSTANTS
2021-04-26 01:18:28 +02:00
Stephan Seitz
9eaf1840b3
highlights(cpp): fix constructor call highlighting
...
Address #883
2021-01-29 17:01:23 +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
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
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
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
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
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
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
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