aboutsummaryrefslogtreecommitdiffstats
path: root/queries/t32
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-284/+0
|
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-1/+1
|
* feat(t32): update queries from upstream (#6440)Christoph Sax2024-04-142-0/+5
| | | | Adds support for new node type `elif_block`.
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-212-10/+7
|
* feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`Jaehwang Jung2024-03-161-2/+2
|
* Fixup format (#5934)Phạm Huy Hoàng2024-01-201-0/+1
| | | | | | | * fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern
* chore: query formattingPham Huy Hoang2024-01-193-49/+37
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-8/+8
|
* fix(t32): update indent queries & testChristoph Sax2023-09-141-18/+4
| | | | | | | The latest release of the grammar changes the handling of consecutive line breaks. This breaks the existing test for indents. This commit updates the indent queries and fixes the associated test.
* 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
* feat(t32)!: update queries for new HLL node typesChristoph Sax2023-07-302-24/+117
| | | | | | | | - Lock grammar to version 2.1.1 - Update query for syntax hightlighting - fix missing locals query - reduce number of "(identifier) @variable" highlight queries - revert to capture @function.builtin for PRACTICE call expressions
* lint(locals): use `#set!` to keep query linter happyChristian Clason2023-06-221-1/+1
|
* tests: fix failed tests (#4901)Pham Huy Hoang2023-06-051-5/+3
| | | fix failed tests for tiger, t32 and wgsl
* feat(t32): add indent rules (#4782)Christoph Sax2023-05-182-0/+37
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-3/+3
|
* feat(t32): initial supportxasc2022-12-214-0/+178