Commit graph

36 commits

Author SHA1 Message Date
antonk52
90f15d9bf7 feat(keywords) merge return and yield into keyword.return group 2021-07-04 21:49:17 +02:00
antonk52
bd9095e969 feat(keywords) add keyword.return & keyword.yield 2021-07-04 21:49:17 +02:00
Stephan Seitz
506e998da2 highlights(c/c++): "..." also exists in C (variadic macros) 2021-05-18 07:07:16 +02:00
Stephan Seitz
2873d1efda highlights(c): highlight (escape_sequence) 2021-05-01 09:39:41 +02:00
Stephan Seitz
423fb7b4aa C highlights: Make char_literal @character 2021-04-21 18:37:38 +02:00
Stephan Seitz
866f39bb71 highlights(c): update declaration and cast_expression 2021-03-02 16:55:18 +01:00
Fabian Viöl
34bb66c48f Add 'register' as c-keyword
See https://en.wikipedia.org/wiki/Register_(keyword)
2021-03-01 09:12:44 -05:00
Thomas Vigouroux
632a9f1e3c fix(c highlights): add missing operators 2021-01-06 10:48:35 -05:00
Stephan Seitz
40588da97c Remove usages of @embedded in highlights 2021-01-06 09:12:32 -05:00
Thomas Vigouroux
049028ef3e c highlights: fix define/undef arguments 2020-11-22 22:33:56 +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
bcf421b4e7 Fix #307: Use and document TSVariable/TSVariableBuiltin in all languages 2020-09-14 18:27:20 +02:00
Stephan Seitz
da6bc7be20 fix(cpp highlights): Use @include for preproc_include (fix #445) 2020-09-13 12:46:52 +02:00
Stephan Seitz
1cdf8bf750 C highlights: make preproc_defined @function.macro 2020-08-30 10:53:41 +02:00
Stephan Seitz
5f37847dd8 C highlights: add bitwise-xor operator 2020-08-27 07:30:02 +02:00
Stephan Seitz
32fdbe519e feat(c/cpp highlights): highlight pointer/reference parameters 2020-08-24 09:54:26 +02:00
Steven Sojka
cab8717959 chore(highlights): remove is predicate usage 2020-08-17 19:27:35 +02:00
Steven Sojka
579c9936d6 feat(highlights): add is predicate 2020-08-16 09:04:07 -05:00
Stephan Seitz
64ebd4128e C highlights: Add operator "%" 2020-07-20 09:00:07 +02:00
Thomas Vigouroux
85d2f9ee93 highlights: some fixes
Add `goto` keyword for C.
Fix typo for lua.
2020-07-16 10:49: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
Thomas Vigouroux
255d1756b0 highlights(c): highlight ternary as conditional 2020-06-30 08:54:54 +02:00
Stephan Seitz
d724073401 C highlights: Make ? an operator in c highlights 2020-06-30 08:54:54 +02:00
Stephan Seitz
54438439e6 C highlights: Add highlight for #elif 2020-06-28 12:15:09 +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
e46baab8ca Add better highlighting for preprocessor functions in C highlights 2020-06-15 11:51:28 +02:00
Stephan Seitz
d88db9d718 Add operators /=,*=,|=,&= to C highlights 2020-06-15 11:51:28 +02:00
Stephan Seitz
a0b912ff8a Add punctuation.bracket/punctuation.delimiter to C highlights 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
b95e0af73b Add @error highlight to c/highlights.scm 2020-06-15 11:51:28 +02:00
Stephan Seitz
167ce6339f Add C++ highlights.scm 2020-06-15 11:51:28 +02:00
Thomas Vigouroux
92aafcf51c queries: add C queries
Also add a missing `field` capture in locals query.
2020-05-16 14:47:17 +02:00