| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | bot(lockfile): update arduino, awk, bash, c, cpp, css, cuda, go, groovy, ↵ | nvim-treesitter-bot[bot] | 2024-09-05 | 1 | -1/+1 |
| | | | | | haskell, hlsl, html, http, javascript, jsdoc, json, julia, liquid, norg, ocaml, ocaml_interface, php, php_only, phpdoc, python, ql, regex, ruby, rust, scala, slang, tcl, templ, tsx, typescript, v, wing | ||||
| * | fix(cpp): update parser and queries (#6687) | Amaan Qureshi | 2024-05-26 | 1 | -1/+1 |
| | | |||||
| * | feat: more `@keyword.type` captures | Riley Bruins | 2024-05-01 | 1 | -5/+8 |
| | | |||||
| * | refactor(format): drop extra indentation for field | Phạm Huy Hoàng | 2024-03-21 | 1 | -12/+8 |
| | | |||||
| * | feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier` | Jaehwang Jung | 2024-03-16 | 1 | -1/+1 |
| | | |||||
| * | feat(highlights)!: enforce documented captures (#6232) | Christian Clason | 2024-03-03 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | | Problem: Allowing undocumented "secret" (sub)captures makes it harder to write comprehensive colorschemes and catch inconsistent captures. Solution: Only allow captures listed in CONTRIBUTING.md. Add useful (cross-language) subcaptures and drop language-specific or too niche ones. Follow-up: Adding further `*.builtin` captures and changing queries to use them. Language-specific subcaptures should instead be added in user config or a custom language plugin. | ||||
| * | feat(format): extra newline after modeline | Phạm Huy Hoàng | 2024-02-29 | 1 | -0/+1 |
| | | |||||
| * | chore: format queries | Phạm Huy Hoàng | 2024-01-21 | 1 | -2/+2 |
| | | |||||
| * | chore: query formatting | Pham Huy Hoang | 2024-01-19 | 1 | -69/+97 |
| | | |||||
| * | feat!: align standard captures with upstream | Christian Clason | 2024-01-19 | 1 | -15/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Sharing highlight queries with upstream tree-sitter and Helix is difficult. Solution: Where reasonable, use capture names in tree-sitter's standard list or Helix's Atom-style hierarchy. Specifically: * tree-sitter "standard capture names" (https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/highlight/src/lib.rs#L20-L72): - `@parameter` -> `@variable.parameter` - `@field` -> `@variable.member` - `@namespace` -> `@module` - `@float` -> `@number.float` - `@symbol` -> `@string.special.symbol` - `@string.regex` -> `@string.regexp` - `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below) - `@text.title` -> `@markup.heading` - `@text.literal` -> `@markup.raw` - `@text.reference` -> `@markup.link` - `@text.uri` -> `@markup.link.url` (in markup links) - `@string.special` -> `@markup.link.label` (non-url links) - `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`) * Helix captures (https://docs.helix-editor.com/master/themes.html#syntax-highlighting): - `@method` -> `@function.method` - `@method.call` -> `@function.method.call` - `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}` - `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}` - `@text.uri` -> `@string.special.url` (outside markup) - `@preproc` -> `@keyword.directive` - `@define` -> `@keyword.directive`(`.define`?) - `@storageclass` -> `@keyword.storage` - `@conditional` -> `@keyword.conditional` - `@debug` -> `@keyword.debug` - `@exception` -> `@keyword.exception` - `@include` -> `@keyword.import` - `@repeat` -> `@keyword.repeat` * cleanup - remove some redundant `@conceal` (but still allow it for conceal-only patterns) - remove obsolete `@error` (syntax linting is out of scope for this repo) - sort, cleanup capture list in `CONTRIBUTING.md` | ||||
| * | fix(cpp): remove `@field` for identifiers with `_` prefix (#5731) | HumblePresent | 2023-11-27 | 1 | -1/+1 |
| | | |||||
| * | fix(cpp): highlight constexpr | Amaan Qureshi | 2023-11-10 | 1 | -0/+1 |
| | | |||||
| * | fix(c)!: update C, CPP parsers and queries | Amaan Qureshi | 2023-07-27 | 1 | -1/+1 |
| | | | | also update derived parsers (arduino, cuda, glsl, hlsl, ispc, objc) | ||||
| * | fear(cpp): highlight brackets in template_parameter_list | fab4100 | 2023-05-20 | 1 | -0/+3 |
| | | |||||
| * | perf: remove match where possible | Amaan Qureshi | 2023-04-21 | 1 | -7/+7 |
| | | |||||
| * | feat(cpp): improve function.call to support any level of nesting for ↵ | John Drouhard | 2023-04-15 | 1 | -33/+68 |
| | | | | | qualified identifiers | ||||
| * | feat(cpp): more distinction between function/method declaration and call | Jaehwang Jung | 2023-04-08 | 1 | -7/+21 |
| | | |||||
| * | feat(cpp): simplify namespace query rules now that parser is a bit more ↵ | John Drouhard | 2023-03-27 | 1 | -4/+1 |
| | | | | | consistent | ||||
| * | fix(cpp): nullptr should be `@constant.builtin` | Amaan Qureshi | 2023-03-19 | 1 | -1/+1 |
| | | |||||
| * | feat!: add `@keyword.coroutine` capture | Amaan Qureshi | 2023-03-03 | 1 | -6/+9 |
| | | |||||
| * | highlights(cpp): auto as @type.builtin | Aaron Rancsik | 2022-12-01 | 1 | -1/+3 |
| | | |||||
| * | highlights(cpp): use more specific groups | ObserverOfTime | 2022-11-26 | 1 | -10/+18 |
| | | |||||
| * | highlights(cpp): add alternative operator names | mliszcz | 2022-10-11 | 1 | -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 queries | lfenzo | 2022-08-03 | 1 | -4/+4 |
| | | |||||
| * | highlights(c/cpp): move attributes to C (again) | Stephan Seitz | 2022-07-28 | 1 | -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 Seitz | 2022-05-07 | 1 | -4/+3 |
| | | | | | Fixes #2902 | ||||
| * | highlights(cpp): Add operator cast highlight | Fabian Viöl | 2022-03-02 | 1 | -1/+2 |
| | | | | | | See https://en.cppreference.com/w/cpp/language/cast_operator for reference. | ||||
| * | highlights(cpp): Highlight method with nested qualified_identifier | Fabian Viöl | 2022-02-09 | 1 | -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 | ||||
| * | highlights(c/cpp): highlight case labels as constants | Stephan Seitz | 2022-01-29 | 1 | -0/+2 |
| | | |||||
| * | highlights(cpp): fix function highlighting of Foo::bar::baz() | Stephan Seitz | 2022-01-29 | 1 | -0/+10 |
| | | | | | Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2396 | ||||
| * | highlights(cpp): add support for "<=>", "constinit", "consteval" | Stephan Seitz | 2022-01-17 | 1 | -1/+6 |
| | | |||||
| * | highlights(cpp): add support for concepts | Stephan Seitz | 2022-01-16 | 1 | -0/+4 |
| | | | | | Requires https://github.com/tree-sitter/tree-sitter-cpp/pull/138 | ||||
| * | Prefer lua-match over match | Lewis Russell | 2021-11-23 | 1 | -7/+7 |
| | | | | | as string.find is much quicker than vim.regex:match* | ||||
| * | highlights(cpp): highlight literal_suffix as `@operator` | Stephan Seitz | 2021-10-20 | 1 | -0/+2 |
| | | |||||
| * | cpp: highlight template method identifier as a method | John Drouhard | 2021-09-27 | 1 | -0/+3 |
| | | |||||
| * | cpp: update lockfile.json and fix for breaking changes | John Drouhard | 2021-09-26 | 1 | -10/+6 |
| | | |||||
| * | test | Stephan Seitz | 2021-09-17 | 1 | -0/+2 |
| | | |||||
| * | highlights(c/cpp): react to upstream changes to attributes | Stephan Seitz | 2021-09-17 | 1 | -8/+5 |
| | | |||||
| * | highlights(cpp): add support for coroutines | Stephan Seitz | 2021-09-17 | 1 | -0/+3 |
| | | |||||
| * | highlights(cpp): add static_assert | Stephan Seitz | 2021-07-06 | 1 | -0/+1 |
| | | |||||
| * | c++ highlights: don't capture all identifiers with uppercase initials as types | Alex Chen | 2021-06-10 | 1 | -4/+0 |
| | | |||||
| * | highlights(c/c++): "..." also exists in C (variadic macros) | Stephan Seitz | 2021-05-18 | 1 | -1/+0 |
| | | |||||
| * | highlights(cpp): highlight namespaces in using declartions | Stephan Seitz | 2021-04-26 | 1 | -0/+2 |
| | | |||||
| * | highlights(cpp): reduce number of regexes | Stephan Seitz | 2021-04-26 | 1 | -9/+3 |
| | | |||||
| * | highlights(cpp): avoid overwriting C CONSTANTS | Stephan Seitz | 2021-04-26 | 1 | -2/+2 |
| | | |||||
| * | highlights(cpp): fix constructor call highlighting | Stephan Seitz | 2021-01-29 | 1 | -0/+3 |
| | | | | | Address #883 | ||||
| * | C++ highlights: Fix destructor highlighting | Stephan Seitz | 2021-01-08 | 1 | -1/+1 |
| | | | | | Field is not "name" | ||||
| * | c/cpp highlights: Fix field declarations and initializers | John Drouhard | 2020-11-20 | 1 | -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 type | Stephan Seitz | 2020-11-18 | 1 | -3/+5 |
| | | |||||
| * | fix(predicates): Fix #446: highlight property only if not a method | Stephan Seitz | 2020-11-18 | 1 | -2/+3 |
| | | |||||
