summaryrefslogtreecommitdiff
path: root/queries/c/highlights.scm
AgeCommit message (Collapse)Author
2022-10-15highlights: use @preproc where appropriateObserverOfTime
2022-10-15highlights(c): highlight standard streamsObserverOfTime
2022-09-26feat(spell): support more languagesLewis Russell
2022-09-06feat(spell): upstream spell queries from spellsitterLewis Russell
2022-08-03Split func/method definition from calls in C highlighting querieslfenzo
2022-07-28highlights(c/cpp): move attributes to C (again)Stephan Seitz
Let's hope that this time the C tests pass, also for the built-in C parser.
2022-07-20highlights(c): Lower the priority of @variablemliszcz
Lower the priority of @variable to prefer @parameter highlight when identifier appears in parameter_declaration. Fixes #3061
2022-07-08highlights(c): highlight `,` operator as operator (#3107)guijan
2022-07-01highlights(c): highlight member-access as operator (#3096)guijan
2022-05-29highlights(c): highlight field_designator as `@property`Stephan Seitz
2022-01-29highlights(c/cpp): highlight case labels as constantsStephan Seitz
2022-01-29highlights(c): highlight enum variants as `@constant`Stephan Seitz
Fixes #2120
2022-01-20highlights(c): don't highlight type qualifiers in declarations as typesJohn Drouhard
2021-11-23Prefer lua-match over matchLewis Russell
as string.find is much quicker than vim.regex:match*
2021-11-14C: fix preproc parametersSantos Gallegos
This was capturing too much, we only want to highlight the identifier. Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1999
2021-09-19highlights(c): add Mircosoft attributesStephan Seitz
2021-09-19highlights(c): add __attribute__Stephan Seitz
2021-09-17testStephan Seitz
2021-09-17highlights(c/cpp): react to upstream changes to attributesStephan Seitz
2021-09-01highlights(c): make sizeof a `keyword.operator`Sergio Alejandro Vargas
2021-07-18c: don't treat uppercase functions as constantsGregory Anders
A macro function such as #define FOO(x) ... should be highlighted with @function.macro, even though the name is in all-caps (which would otherwise be treated as a constant). Similarly, call sites of such functions, e.g. int y = FOO(x); should be highlighted with @function instead of @constant. This is as simple as moving the query definition for macro functions after the query definition for constants.
2021-07-04feat(keywords) merge return and yield into keyword.return groupantonk52
2021-07-04feat(keywords) add keyword.return & keyword.yieldantonk52
2021-05-18highlights(c/c++): "..." also exists in C (variadic macros)Stephan Seitz
2021-05-01highlights(c): highlight (escape_sequence)Stephan Seitz
2021-04-21C highlights: Make char_literal `@character`Stephan Seitz
2021-03-02highlights(c): update declaration and cast_expressionStephan Seitz
2021-03-01Add 'register' as c-keywordFabian Viƶl
See https://en.wikipedia.org/wiki/Register_(keyword)
2021-01-06fix(c highlights): add missing operatorsThomas Vigouroux
2021-01-06Remove usages of `@embedded` in highlightsStephan Seitz
2020-11-22c highlights: fix define/undef argumentsThomas Vigouroux
2020-11-20c/cpp highlights: Fix field declarations and initializersJohn Drouhard
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-18Do not highlight Uppercase function as typeStephan Seitz
2020-11-18fix(predicates): Fix #446: highlight property only if not a methodStephan Seitz
2020-09-14Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz
2020-09-13fix(cpp highlights): Use `@include` for preproc_include (fix #445)Stephan Seitz
2020-08-30C highlights: make `preproc_defined` @function.macroStephan Seitz
2020-08-27C highlights: add bitwise-xor operatorStephan Seitz
2020-08-24feat(c/cpp highlights): highlight pointer/reference parametersStephan Seitz
2020-08-17chore(highlights): remove is predicate usageSteven Sojka
2020-08-16feat(highlights): add is predicateSteven Sojka
2020-07-20C highlights: Add operator "%"Stephan Seitz
2020-07-16highlights: some fixesThomas Vigouroux
Add `goto` keyword for C. Fix typo for lua.
2020-07-09highlight(c): fix booleans and typesThomas Vigouroux
2020-07-05C/C++ highlights: update to new syntaxStephan Seitz
This changed the highlight of "switch" to conditional and of "break" to repeat.
2020-06-30highlights(c): highlight ternary as conditionalThomas Vigouroux
2020-06-30C highlights: Make ? an operator in c highlightsStephan Seitz
2020-06-28C highlights: Add highlight for #elifStephan Seitz
2020-06-15Change regexes in C/C++ highlightsStephan Seitz
2020-06-15Update C/C++ highlights to new query syntaxStephan Seitz