summaryrefslogtreecommitdiff
path: root/queries/cpp
AgeCommit message (Collapse)Author
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-05-07highlights(cpp): make "::" `@punctuation.delimiter`Stephan Seitz
Fixes #2902
2022-03-02highlights(cpp): Add operator cast highlightFabian Viöl
See https://en.cppreference.com/w/cpp/language/cast_operator for reference.
2022-02-09highlights(cpp): Highlight method with nested qualified_identifierFabian Viöl
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
2022-02-05indents(cpp): indent at field_initializer_listStephan Seitz
2022-01-29highlights(c/cpp): highlight case labels as constantsStephan Seitz
2022-01-29highlights(cpp): fix function highlighting of Foo::bar::baz()Stephan Seitz
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2396
2022-01-21feat: rewrite indent moduleMunif Tanjim
2022-01-17highlights(cpp): add support for "<=>", "constinit", "consteval"Stephan Seitz
2022-01-16locals(cpp): add support for conceptsStephan Seitz
2022-01-16highlights(cpp): add support for conceptsStephan Seitz
Requires https://github.com/tree-sitter/tree-sitter-cpp/pull/138
2021-11-23Prefer lua-match over matchLewis Russell
as string.find is much quicker than vim.regex:match*
2021-11-02chore: fix typosDundar Göc
2021-10-20highlights(cpp): highlight literal_suffix as `@operator`Stephan Seitz
2021-09-27cpp: highlight template method identifier as a methodJohn Drouhard
2021-09-26cpp: fix locals.scm from breaking change in tree-sitter-cppJohn Drouhard
2021-09-26cpp: update lockfile.json and fix for breaking changesJohn Drouhard
2021-09-17testStephan Seitz
2021-09-17highlights(c/cpp): react to upstream changes to attributesStephan Seitz
2021-09-17highlights(cpp): add support for coroutinesStephan Seitz
2021-07-14folds(cpp): highlight scoped enumsStephan Seitz
2021-07-06highlights(cpp): add static_assertStephan Seitz
2021-06-10c++ highlights: don't capture all identifiers with uppercase initials as typesAlex Chen
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-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-26highlights(cpp): highlight namespaces in using declartionsStephan Seitz
2021-04-26highlights(cpp): reduce number of regexesStephan Seitz
2021-04-26highlights(cpp): avoid overwriting C CONSTANTSStephan Seitz
2021-03-16Fix C++ localsStephan Seitz
2021-03-16Fix ocaml queriesStephan Seitz
2021-03-16Mark parsers with NPM dependencyStephan Seitz
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2021-03-01feat: use @ignore for comments and multiline stringselianiva
2021-02-10C/CPP: add injections for macrosSantos Gallegos
2021-01-29highlights(cpp): fix constructor call highlightingStephan Seitz
Address #883
2021-01-14feat: added more indent querieselianiva
2021-01-08C++ highlights: Fix destructor highlightingStephan Seitz
Field is not "name"
2020-11-20c/cpp highlights: Fix field declarations and initializersJohn Drouhard
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.
2020-11-18Do not highlight Uppercase function as typeStephan Seitz
2020-11-18fix(predicates): Fix #446: highlight property only if not a methodStephan Seitz
2020-10-13C++ highlights: highlight all kinds of optional parametersStephan Seitz
declarator can be a identifier, a reference or a pointer
2020-10-11feat(queries): modeline mechanism for base langsThomas Vigouroux
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.
2020-10-10fix(highlights): Add TSNamespace highlightStephan Seitz
Start adding highlights for - C++ - Rust (including other scoped_identifier/scoped_type_identifier fixes) - JS (only namespace_import) Addresses #516
2020-10-04Remove textobjects moduleStephan Seitz
2020-09-19Add @keyword.operator for operators that are English words and add ↵Stephan Seitz
@exception for Java/JS
2020-09-14Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz
2020-09-14Folds: rename query files to folds.scm to be consistentSantos Gallegos
We use plural names for all query files except folds.