aboutsummaryrefslogtreecommitdiffstats
path: root/queries/c
Commit message (Collapse)AuthorAgeFilesLines
* highlights(c): extern in linkage specificationObserverOfTime2023-01-261-0/+3
|
* indents(c): update if casesPham Huy Hoang2023-01-141-50/+55
|
* indents(c): Refactor indent queriesPham Huy Hoang2023-01-141-11/+75
|
* indents(c): treat `"#ifndef"`, `"#elif"` like `"#ifdef"`Stephan Seitz2022-12-311-0/+2
|
* highlights: create subscoping for ternary operatorStephan Seitz2022-12-021-1/+1
| | | | | | | | | | After https://github.com/nvim-treesitter/nvim-treesitter/issues/470, we decided to use `@conditional` for ternary operator instead of operator despite `@conditional` is documented for keywords only. A sub-scoping can make it easier for people to highlight this operator group differently. Also unify the usage of `@conditional...` across languages.
* highlights(c): primitive type as builtinAaron Rancsik2022-12-011-1/+2
|
* highlights(c): use more specific groupsObserverOfTime2022-11-261-8/+9
| | | | Co-Authored-By: Stephan Seitz <stephan.seitz@fau.de>
* highlights: use @preproc where appropriateObserverOfTime2022-10-151-1/+1
|
* highlights(c): highlight standard streamsObserverOfTime2022-10-151-0/+3
|
* feat(spell): support more languagesLewis Russell2022-09-261-2/+1
|
* feat(spell): upstream spell queries from spellsitterLewis Russell2022-09-061-0/+1
|
* Split func/method definition from calls in C highlighting querieslfenzo2022-08-031-2/+2
|
* highlights(c/cpp): move attributes to C (again)Stephan Seitz2022-07-281-0/+1
| | | | | Let's hope that this time the C tests pass, also for the built-in C parser.
* highlights(c): Lower the priority of @variablemliszcz2022-07-201-1/+2
| | | | | | | Lower the priority of @variable to prefer @parameter highlight when identifier appears in parameter_declaration. Fixes #3061
* highlights(c): highlight `,` operator as operator (#3107)guijan2022-07-081-7/+10
|
* highlights(c): highlight member-access as operator (#3096)guijan2022-07-011-1/+2
|
* highlights(c): highlight field_designator as `@property`Stephan Seitz2022-05-291-0/+1
|
* indens(c): use (comment) @autoStephan Seitz2022-02-051-4/+1
|
* indents(c): indent always after init_declaratorStephan Seitz2022-02-051-6/+1
|
* indents(c): add zero_indent for #ifStephan Seitz2022-02-051-5/+9
|
* indents(c): fix indentation on block commentStephan Seitz2022-02-051-1/+5
|
* indents(c): indent at expression_statementStephan Seitz2022-02-051-3/+2
|
* indents: allow aligned_indent for unfinished calls in C and PythonStephan Seitz2022-02-051-1/+5
|
* indents(c): fix ternaryStephan Seitz2022-02-051-1/+0
|
* highlights(c/cpp): highlight case labels as constantsStephan Seitz2022-01-291-0/+2
|
* highlights(c): highlight enum variants as `@constant`Stephan Seitz2022-01-291-0/+2
| | | | Fixes #2120
* folds(c): fold raw `compound_statement`sStephan Seitz2022-01-281-1/+2
| | | | | | This will fold in particular around raw braces as reported in #2359 while avoiding to have double folds at functions+braces.
* folds(c): fold at compound_statementCédric Barreteau2022-01-241-0/+1
|
* fix(indent): c/cpp - support newline after closing braceMunif Tanjim2022-01-211-0/+2
|
* feat: rewrite indent moduleMunif Tanjim2022-01-211-3/+23
|
* highlights(c): don't highlight type qualifiers in declarations as typesJohn Drouhard2022-01-201-2/+0
|
* Prefer lua-match over matchLewis Russell2021-11-231-1/+1
| | | | as string.find is much quicker than vim.regex:match*
* C: fix preproc parametersSantos Gallegos2021-11-141-2/+1
| | | | | | | This was capturing too much, we only want to highlight the identifier. Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1999
* Fix #1853igorlfs2021-09-301-1/+0
|
* highlights(c): add Mircosoft attributesStephan Seitz2021-09-191-1/+13
|
* highlights(c): add __attribute__Stephan Seitz2021-09-191-0/+1
|
* testStephan Seitz2021-09-171-7/+5
|
* highlights(c/cpp): react to upstream changes to attributesStephan Seitz2021-09-171-0/+2
|
* highlights(c): make sizeof a `keyword.operator`Sergio Alejandro Vargas2021-09-011-1/+1
|
* Indent C compound_literal_expressionleo602282021-08-011-0/+1
|
* c: don't treat uppercase functions as constantsGregory Anders2021-07-181-9/+9
| | | | | | | | | | | | | | | | | 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.
* c(folds): fold on enumsStephan Seitz2021-07-141-0/+1
|
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-3/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-1/+4
|
* indents(c/cpp): let C++ use the C indents and add class_specifierStephan Seitz2021-05-201-0/+3
| | | | Fixes #1320
* highlights(c/c++): "..." also exists in C (variadic macros)Stephan Seitz2021-05-181-0/+2
|
* Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos2021-05-071-1/+1
| | | | This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
* highlights(c): highlight (escape_sequence)Stephan Seitz2021-05-011-0/+1
|
* Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos2021-04-281-1/+1
| | | | | | | | | | | | * 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
* folds(c): fold at case_statementStephan Seitz2021-04-261-0/+1
|