summaryrefslogtreecommitdiffstats
path: root/queries/cpp
Commit message (Collapse)AuthorAgeFilesLines
* fix(cpp): incorrect indent of class with opening { on new line (#5811)Jędrzej Boczar2023-12-221-2/+0
|
* fix(cpp): remove `@field` for identifiers with `_` prefix (#5731)HumblePresent2023-11-271-1/+1
|
* fix(cpp): highlight constexprAmaan Qureshi2023-11-101-0/+1
|
* feat: add DoxygenAmaan Qureshi2023-08-261-0/+4
|
* chore(c-family): inject all preproc args againAmaan Qureshi2023-08-131-11/+1
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-7/+16
| | | | | | | | | Since 0.9, @lang syntax is still available as fallback but will soon be deprecated. Because of that, new syntax should be adopted once 0.9 becomes the baseline requirements for nvim-treesitter - update health check - update doc
* fix(c-family): inject into preproc args in preproc defs when it spans ↵Amaan Qureshi2023-08-111-0/+2
| | | | multiple lines only
* fix(cpp): update injections from CAmaan Qureshi2023-08-101-1/+2
|
* fix(c)!: update C, CPP parsers and queriesAmaan Qureshi2023-07-271-1/+1
| | | also update derived parsers (arduino, cuda, glsl, hlsl, ispc, objc)
* lint(locals): use `#set!` to keep query linter happyChristian Clason2023-06-221-3/+3
|
* fear(cpp): highlight brackets in template_parameter_listfab41002023-05-201-0/+3
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-7/+7
|
* feat(cpp): improve function.call to support any level of nesting for ↵John Drouhard2023-04-151-33/+68
| | | | qualified identifiers
* feat(cpp): more distinction between function/method declaration and callJaehwang Jung2023-04-081-7/+21
|
* feat(cpp): simplify namespace query rules now that parser is a bit more ↵John Drouhard2023-03-272-5/+6
| | | | consistent
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-4/+5
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* fix(cpp): nullptr should be `@constant.builtin`Amaan Qureshi2023-03-191-1/+1
|
* feat!: add `@keyword.coroutine` captureAmaan Qureshi2023-03-031-6/+9
|
* injections(cpp): add injections for raw string literalsJohn Drouhard2023-01-091-0/+4
| | | | | | | | | | | | | the delimiter describes the language to use for the injection content ```cpp auto python_code = R"python( import os if __name__ == '__main__': print(os.name) )python"; ```
* highlights(cpp): auto as @type.builtinAaron Rancsik2022-12-011-1/+3
|
* highlights(cpp): use more specific groupsObserverOfTime2022-11-261-10/+18
|
* highlights(cpp): add alternative operator namesmliszcz2022-10-111-14/+11
| | | | | These keywords are now supported by the parser. See: https://github.com/tree-sitter/tree-sitter-cpp/pull/179
* Split func/method definition from calls in C++ highlighting querieslfenzo2022-08-031-4/+4
|
* highlights(c/cpp): move attributes to C (again)Stephan Seitz2022-07-281-2/+0
| | | | | Let's hope that this time the C tests pass, also for the built-in C parser.
* highlights(cpp): make "::" `@punctuation.delimiter`Stephan Seitz2022-05-071-4/+3
| | | | Fixes #2902
* highlights(cpp): Add operator cast highlightFabian Viöl2022-03-021-1/+2
| | | | | See https://en.cppreference.com/w/cpp/language/cast_operator for reference.
* highlights(cpp): Highlight method with nested qualified_identifierFabian Viöl2022-02-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | so that methods like these are correctly highlighted ```cpp class A { class B { void foo(); }; }; void A::B::foo() { // ^^^ } ``` This only increases the nesting level by one. AFAIK abritrary nesting is difficult to do with current queries. But this nesting is a pretty common case
* indents(cpp): indent at field_initializer_listStephan Seitz2022-02-051-0/+2
|
* highlights(c/cpp): highlight case labels as constantsStephan Seitz2022-01-291-0/+2
|
* highlights(cpp): fix function highlighting of Foo::bar::baz()Stephan Seitz2022-01-291-0/+10
| | | | Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2396
* feat: rewrite indent moduleMunif Tanjim2022-01-211-1/+2
|
* highlights(cpp): add support for "<=>", "constinit", "consteval"Stephan Seitz2022-01-171-1/+6
|
* locals(cpp): add support for conceptsStephan Seitz2022-01-161-0/+5
|
* highlights(cpp): add support for conceptsStephan Seitz2022-01-161-0/+4
| | | | Requires https://github.com/tree-sitter/tree-sitter-cpp/pull/138
* Prefer lua-match over matchLewis Russell2021-11-231-7/+7
| | | | as string.find is much quicker than vim.regex:match*
* chore: fix typosDundar Göc2021-11-021-2/+2
|
* highlights(cpp): highlight literal_suffix as `@operator`Stephan Seitz2021-10-201-0/+2
|
* cpp: highlight template method identifier as a methodJohn Drouhard2021-09-271-0/+3
|
* cpp: fix locals.scm from breaking change in tree-sitter-cppJohn Drouhard2021-09-261-7/+3
|
* cpp: update lockfile.json and fix for breaking changesJohn Drouhard2021-09-261-10/+6
|
* testStephan Seitz2021-09-171-0/+2
|
* highlights(c/cpp): react to upstream changes to attributesStephan Seitz2021-09-171-8/+5
|
* highlights(cpp): add support for coroutinesStephan Seitz2021-09-171-0/+3
|
* folds(cpp): highlight scoped enumsStephan Seitz2021-07-141-0/+3
|
* highlights(cpp): add static_assertStephan Seitz2021-07-061-0/+1
|
* c++ highlights: don't capture all identifiers with uppercase initials as typesAlex Chen2021-06-101-4/+0
|
* indents(c/cpp): let C++ use the C indents and add class_specifierStephan Seitz2021-05-201-15/+4
| | | | Fixes #1320
* highlights(c/c++): "..." also exists in C (variadic macros)Stephan Seitz2021-05-181-1/+0
|
* Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos2021-05-071-1/+1
| | | | This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
* 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