aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* highlights(cpp): highlight namespaces in using declartionsStephan Seitz2021-04-261-0/+2
|
* highlights(cpp): reduce number of regexesStephan Seitz2021-04-261-9/+3
|
* highlights(cpp): avoid overwriting C CONSTANTSStephan Seitz2021-04-261-2/+2
|
* Fix C++ localsStephan Seitz2021-03-161-7/+3
|
* Fix ocaml queriesStephan Seitz2021-03-161-1/+0
|
* Mark parsers with NPM dependencyStephan Seitz2021-03-161-5/+6
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+2
| | | Closes #236
* feat: use @ignore for comments and multiline stringselianiva2021-03-011-0/+2
|
* C/CPP: add injections for macrosSantos Gallegos2021-02-101-0/+1
|
* highlights(cpp): fix constructor call highlightingStephan Seitz2021-01-291-0/+3
| | | | Address #883
* feat: added more indent querieselianiva2021-01-141-0/+16
|
* C++ highlights: Fix destructor highlightingStephan Seitz2021-01-081-1/+1
| | | | Field is not "name"
* c/cpp highlights: Fix field declarations and initializersJohn Drouhard2020-11-201-0/+6
| | | | | | | 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-3/+5
|
* fix(predicates): Fix #446: highlight property only if not a methodStephan Seitz2020-11-181-2/+3
|
* C++ highlights: highlight all kinds of optional parametersStephan Seitz2020-10-131-2/+2
| | | | declarator can be a identifier, a reference or a pointer
* feat(queries): modeline mechanism for base langsThomas Vigouroux2020-10-113-0/+6
| | | | | | | | This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189 This behaves like modelines and remove the use of the base_language map. Also, this allows to fine-tune what we actually want to include per query, which is better IMO.
* fix(highlights): Add TSNamespace highlightStephan Seitz2020-10-101-1/+3
| | | | | | | | | Start adding highlights for - C++ - Rust (including other scoped_identifier/scoped_type_identifier fixes) - JS (only namespace_import) Addresses #516