aboutsummaryrefslogtreecommitdiffstats
path: root/queries/c
Commit message (Collapse)AuthorAgeFilesLines
* highlights(c): make sizeof a `keyword.operator`Sergio Alejandro Vargas2021-09-171-1/+1
|
* Indent C compound_literal_expressionleo602282021-09-171-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
|
* fix(c): fold switch statementsThomas Vigouroux2021-04-221-0/+1
|
* C highlights: Make char_literal `@character`Stephan Seitz2021-04-211-1/+1
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+2
| | | Closes #236
* highlights(c): update declaration and cast_expressionStephan Seitz2021-03-021-2/+2
|
* feat: use @ignore for comments and multiline stringselianiva2021-03-011-0/+5
|
* Add 'register' as c-keywordFabian Viƶl2021-03-011-0/+1
| | | | See https://en.wikipedia.org/wiki/Register_(keyword)
* C/CPP: add injections for macrosSantos Gallegos2021-02-101-0/+1
|
* C: add goto to localsSantos Gallegos2021-01-221-0/+5
|
* feat: added more indent querieselianiva2021-01-141-0/+16
|
* fix(c highlights): add missing operatorsThomas Vigouroux2021-01-061-0/+2
|
* Remove usages of `@embedded` in highlightsStephan Seitz2021-01-061-1/+0
|
* Fix #724: Add (initializer_list) to C foldsStephan Seitz2020-11-301-0/+2
|
* c highlights: fix define/undef argumentsThomas Vigouroux2020-11-221-0/+9
|
* c/cpp highlights: Fix field declarations and initializersJohn Drouhard2020-11-201-0/+5
| | | | | | | 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.
* Do not highlight Uppercase function as typeStephan Seitz2020-11-181-1/+1
|
* fix(predicates): Fix #446: highlight property only if not a methodStephan Seitz2020-11-181-1/+3
|
* Remove textobjects moduleStephan Seitz2020-10-041-58/+0
|
* Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz2020-09-141-0/+2
|
* Folds: rename query files to folds.scm to be consistentSantos Gallegos2020-09-141-0/+0
| | | | We use plural names for all query files except folds.
* fix(cpp highlights): Use `@include` for preproc_include (fix #445)Stephan Seitz2020-09-131-1/+2
|
* C/C++ locals: Deduplicate C++ locals contained in CStephan Seitz2020-09-081-0/+1
|
* Add C++ folds and C comment/preproc foldsStephan Seitz2020-09-081-0/+6
|
* fold(c): ignore compound statementsThomas Vigouroux2020-09-011-1/+0
|
* fix(fold): revamp foldThomas Vigouroux2020-09-011-0/+8
| | | | | | | | fix(fold): typo fix(fold): remove debug and add queries fix(fold): fallback to local scopes for folds
* C highlights: make `preproc_defined` @function.macroStephan Seitz2020-08-301-1/+4
|
* C highlights: add bitwise-xor operatorStephan Seitz2020-08-271-0/+2
|
* feat(c/cpp highlights): highlight pointer/reference parametersStephan Seitz2020-08-241-0/+3
|
* chore(highlights): remove is predicate usageSteven Sojka2020-08-171-2/+0
|
* Textobjects: add swap featureStephan Seitz2020-08-171-0/+3
|
* feat(highlights): add is predicateSteven Sojka2020-08-162-4/+6
|
* C/C++ locals: Make `field_identifier` a referenceStephan Seitz2020-07-271-0/+2
|
* C highlights: Add operator "%"Stephan Seitz2020-07-201-0/+2
|
* Attach kind of reference to query result instead of using subfieldsStephan Seitz2020-07-201-1/+2
| | | | | This makes smart_rename work also for types out of the box and we don't need to search for the path of actual node.
* highlights: some fixesThomas Vigouroux2020-07-161-0/+1
| | | | | Add `goto` keyword for C. Fix typo for lua.
* Add C/C++ textobjectsStephan Seitz2020-07-141-0/+47
|
* Add textobjects moduleStephan Seitz2020-07-141-0/+8
|
* Add rust locals.scmStephan Seitz2020-07-131-1/+1
|
* C/C++ highlights: Small improvements for type definitionsStephan Seitz2020-07-131-0/+3
|