aboutsummaryrefslogtreecommitdiffstats
path: root/queries/v
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-388/+0
|
* fix(v): anchor comment highlight queryTuriiya2024-06-281-0/+1
| | | | | * fix(v): use `source_file` as parent node for comment highlight query * fix: correctly recognize doc comment
* feat(v): add shebang queryTuriiya2024-06-261-0/+2
|
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-5/+8
|
* bot(lockfile): update beancount, liquid, ocaml, ocaml_interface, v, vento, wingnvim-treesitter-bot[bot]2024-03-303-4/+13
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-213-29/+20
|
* 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(format-scripts): linewrap predicates再生花2024-02-231-1/+28
| | | "format-ignore".kick()
* chore: format queriesPhạm Huy Hoàng2024-01-211-4/+4
|
* Fixup format (#5934)Phạm Huy Hoàng2024-01-202-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-195-274/+97
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-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`
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-191-12/+12
|
* fix(v): adapt to removed scanner.cChristian Clason2023-12-151-3/+3
|
* refactor: Remove all `(ERROR) @error` capturesPham Huy Hoang2023-10-251-4/+0
| | | | | | | | | | | | As discussed in PR#5421, capturing `@error` is inconsistent, requiring deep nesting (or priority) in order to correctly have red backgrounds to it. Some queries has this capture, some don't. For consistency purposes, removing all of them is more preferable. For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)` to your custom queries.
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-4/+8
| | | | | | | | | 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
* refactor(v)!: update upstream repositoryAmaan Qureshi2023-07-044-172/+224
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-1/+1
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-4/+4
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-1/+4
|
* v(injections): inject regex for some methods in `re` moduleYochem van Rosmalen2023-03-032-0/+9
|
* docs: fix typosdundargoc2023-02-231-1/+1
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-3/+3
|
* highlights(vlang): add `attribute_declaration` and specialize some keywordsStephan Seitz2022-05-211-18/+31
|
* feat: highlight string_interpolation identifierstami52022-05-211-4/+11
| | | | functions call work without issues
* chore: add more builtin variablestami52022-05-211-1/+1
|
* chore: add $else keywordtami52022-05-211-0/+1
|
* chore(vlang): rename set! > #set!tami52022-05-211-3/+3
|
* parser(vlang): fix location of remote repoStephan Seitz2022-05-212-12/+9
|
* feat(vlang): initial supporttami52022-05-215-0/+448
Add support for vlang filetypes. - [ ] Highlight `C` as builtin variable. This is FFI in vlang land, where C act like extern and access c functions. The vlang parser does some extension between C function calls and arguments but I believe highlighting C as builtin variable is sufficient indicator for now. I tried to use offset! but failed. Any suggestions? - [ ] Set up parser url. the vlang parser is located within [vls] repo. Is installing from nested repo supported? `tree_sitter_v/src/parser.c`? [vls]: https://github.com/vlang/vls/tree/master/tree_sitter_v cc @elianiva @theHamsta