summaryrefslogtreecommitdiff
path: root/queries/c
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-02-05indens(c): use (comment) @autoStephan Seitz
2022-02-05indents(c): indent always after init_declaratorStephan Seitz
2022-02-05indents(c): add zero_indent for #ifStephan Seitz
2022-02-05indents(c): fix indentation on block commentStephan Seitz
2022-02-05indents(c): indent at expression_statementStephan Seitz
2022-02-05indents: allow aligned_indent for unfinished calls in C and PythonStephan Seitz
2022-02-05indents(c): fix ternaryStephan 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-28folds(c): fold raw `compound_statement`sStephan Seitz
This will fold in particular around raw braces as reported in #2359 while avoiding to have double folds at functions+braces.
2022-01-24folds(c): fold at compound_statementCédric Barreteau
2022-01-21fix(indent): c/cpp - support newline after closing braceMunif Tanjim
2022-01-21feat: rewrite indent moduleMunif Tanjim
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-30Fix #1853igorlfs
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-08-01Indent C compound_literal_expressionleo60228
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-14c(folds): fold on enumsStephan Seitz
2021-07-04feat(keywords) merge return and yield into keyword.return groupantonk52
2021-07-04feat(keywords) add keyword.return & keyword.yieldantonk52
2021-05-20indents(c/cpp): let C++ use the C indents and add class_specifierStephan Seitz
Fixes #1320
2021-05-18highlights(c/c++): "..." also exists in C (variadic macros)Stephan Seitz
2021-05-07Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos
This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
2021-05-01highlights(c): highlight (escape_sequence)Stephan Seitz
2021-04-28Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos
* Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
2021-04-26folds(c): fold at case_statementStephan Seitz
2021-04-22fix(c): fold switch statementsThomas Vigouroux
2021-04-21C highlights: Make char_literal `@character`Stephan Seitz
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2021-03-02highlights(c): update declaration and cast_expressionStephan Seitz
2021-03-01feat: use @ignore for comments and multiline stringselianiva
2021-03-01Add 'register' as c-keywordFabian Viöl
See https://en.wikipedia.org/wiki/Register_(keyword)
2021-02-10C/CPP: add injections for macrosSantos Gallegos