aboutsummaryrefslogtreecommitdiffstats
path: root/queries/c_sharp
Commit message (Collapse)AuthorAgeFilesLines
* feat(highlights): capture wildcard patterns as `@character.special` (#7153)Omar Valdez2024-09-201-1/+5
|
* fix(c_sharp): remove duplicated queries (#7099)Omar Valdez2024-08-301-9/+3
|
* feat(c_sharp): update parser & queriesAmaan Qureshi2024-05-113-68/+177
|
* feat: import statement folds for common languagesRiley Bruins2024-05-011-1/+4
|
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-8/+11
|
* fix(c_sharp): highlight `raw_string_literal`neuromagus2024-04-081-0/+1
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-213-31/+24
|
* feat(highlights)!: `@keyword.storage` → `@keyword.modifier`Jaehwang Jung2024-03-161-1/+1
|
* feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`Jaehwang Jung2024-03-161-1/+1
|
* feat(csharp): highlight excape sequences (#6229)Omar Valdez2024-03-031-0/+2
|
* feat(c-sharp): add enum member declaration highlight queryJD Rudie2024-02-221-0/+3
|
* chore(c_sharp): highlight tweaksAmaan Qureshi2024-01-241-0/+19
|
* Fixup format (#5934)Phạm Huy Hoàng2024-01-201-0/+2
| | | | | | | * fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern
* chore: query formattingPham Huy Hoang2024-01-194-187/+215
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-191-13/+13
|
* fix: link type in pattern matching correctlyBartek Łuka2024-01-151-0/+3
|
* feat(c_sharp): add missing highlightsGuilherme Soares2023-08-161-0/+4
| | | | | | Added: * `??` and `??=` as operators * `alias` as keyword * `when` as conditional
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-1/+2
| | | | | | | | | 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_sharp): highlight `<` & `>` as `@punctuation.bracket` only in type ↵Iron-E2023-05-041-2/+2
| | | | | param lists This fixes highlighting of `x > 4`, for example
* feat(c_sharp): add capture for ternary operatorsIron-E2023-05-041-0/+2
|
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-0/+8
|
* feat!: add `@keyword.coroutine` captureAmaan Qureshi2023-03-031-2/+5
|
* c_sharp: update parser and queries (#4169)Corentin Brunel2023-01-161-1/+0
| | | | | Remove "nameof" from @keyword.operator Co-authored-by: cbrunel <cbrunel@nomadis.co>
* highlights(c_sharp): add ">>>" ">>>="Stephan Seitz2022-12-241-0/+2
| | | | From upstream change https://github.com/tree-sitter/tree-sitter-c-sharp/pull/266/files
* csharp: update query to parser changeChristian Clason2022-12-201-1/+0
|
* feat: c# required keywordIbrahim Abdelkareem2022-11-291-0/+1
|
* highlights(c_sharp): use more specific groupsObserverOfTime2022-11-261-15/+23
|
* feat(spell): support more languagesLewis Russell2022-09-261-1/+1
|
* highlights(c_sharp): use `@method.call`Stephan Seitz2022-09-111-4/+4
|
* Update parsers with C# fixes (#1910)Stephan Seitz2021-10-221-5/+6
| | | | | | | * highlights(c_sharp): fix queries for parser update * Update c_sharp parser * Fix generic method
* Remove redunant capture.Aleksei Abakumkin2021-08-181-3/+3
|
* Update CSharp highlights.Aleksei Abakumkin2021-08-181-2/+28
|
* fix(c_sharp): Improve highlightsLuxed2021-08-061-3/+73
|
* feat(c_sharp): Simplify folds by only folding blocks of code instead ofLuxed2021-08-061-16/+13
| | | | folding the methods and their attributes
* feat(c_sharp): Add first draft of localsLuxed2021-08-061-0/+41
|
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-4/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-2/+8
|
* highlights(c_sharp): Add preprocessor directives queriesLuxed2021-06-041-0/+33
|
* folds(c_sharp): Add basic foldingLuxed2021-06-041-0/+18
|
* highlights(c_sharp): lots of improvementsLuxed2021-06-041-12/+37
|
* highlights(c_sharp): highlight namespacesStephan Seitz2021-06-011-4/+9
|
* highlights(c_sharp): add heuristic for type highlightStephan Seitz2021-06-011-0/+4
|
* highlights(c_sharp): highlight verbatim_string_literalStephan Seitz2021-06-011-0/+1
|
* highlights(c#): highlight calls of methodsStephan Seitz2021-06-011-2/+6
|
* highlights(c_sharp): improve highlighting of interpolationsStephan Seitz2021-06-011-6/+2
|
* 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(csharp): add "with" as `@keyword.operator`Stephan Seitz2021-04-221-6/+10
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+1
| | | Closes #236