summaryrefslogtreecommitdiffstats
path: root/queries/zig
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Remove all `(ERROR) @error` capturesPham Huy Hoang2023-10-251-3/+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-2/+4
| | | | | | | | | 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(zig): capture function calls as `@function.call`Chinmay Dalal2023-06-221-4/+2
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-3/+3
|
* 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-2/+3
|
* refactor(zig): `@type.definition` items belong in `@keyword`, differentiate ↵Amaan Qureshi2023-03-031-10/+10
| | | | `@boolean` from `@constant.builtin`
* feat!: add `@keyword.coroutine` captureAmaan Qureshi2023-03-031-5/+8
|
* Split out `@keyword.return`Eleanor Bartle2023-02-171-2/+2
| | | | Moves `break` and `continue` to `@repeat`. Leave coroutine keywords in `@keyword.return`. I'd really like a `@keyword.coroutine`.
* Add spelling checks to strings and commentsEleanor Bartle2023-02-171-2/+2
| | | I didn't touch these bits so they aren't in status quo, but sure, I'll fix them.
* Update Zig highlightsEleanor Bartle2023-02-171-81/+76
| | | Recently I rearranged the keywords. This PR brings the highlights query file up to date with that.
* highlights(zig): fix capturesObserverOfTime2022-11-261-27/+25
|
* feat(spell): support more languagesLewis Russell2022-09-261-2/+2
|
* fix(zig): Do not indent on newline after blockphynalle2022-08-081-0/+2
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-1/+1
|
* zig: work around for hang neovimmaxxnino2021-11-281-10/+8
|
* zig: highlight zig format, type and functionmaxxnino2021-11-231-2/+6
|
* Highlight zig add missing AssignOpmaxxnino2021-10-211-1/+1
|
* Zig queries: highlight, fold and indentmaxxnino2021-09-203-5/+17
| | | | | | | | * fold for if/while/for * highlight "_" for ignore variable * highlight "c" for PtrTypeStart * highlight "?" for optional type * remove duplicate query node in indent
* highlight(zig) highlight all caps is a constantmaxxnino2021-08-241-1/+10
| | | | | * in some context, like translate c macro * which is use all CAPS for define constant
* highlight(zig): rework querymaxxnino2021-08-233-101/+47
| | | | | | * improve query performance 120ms -> 6ms * correct highlight for field, type and function * add highlight for escape/format sequence in string
* highlights(zig): label, switch item, operator, punctuation, field property ↵maxxnino2021-08-121-8/+26
| | | | | (#1685) Co-authored-by: maxxnino <idonthaveemail@dontknow.com>
* Update new query and parser for zigmaxxnino2021-08-115-222/+218
|
* highlights(zig): function return type, var decl typemaxxnino2021-08-041-1/+14
|
* highlights(zig): highlight enum,union,error and custom number typemaxxnino2021-08-041-2/+9
| | | | | | | | * highlight enum field as a constant * highlight cImport and constructor * highlight else_switch enum constant
* highlights(zig): highlight true,falseStephan Seitz2021-07-081-2/+5
|
* highlights(zig): highlight `unreachable`Stephan Seitz2021-07-051-0/+1
|
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-3/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-1/+4
|
* highlights(zig): use `@string.escape` for escape sequencesStephan Seitz2021-07-041-1/+1
|
* Update zig highlightsGregory Anders2021-06-101-1/+7
| | | | | | Highlight the built-in `@import` function with the TSInclude highlight group. Also highlight character literals using TSCharacter instead of TSNumber.
* 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
* improved zig grammar and queriesHimujjal2021-04-021-1/+1
|
* fixed some errorsHimujjal2021-04-025-11/+15
|
* Import highlights.scm from tree-sitter-zigStephan Seitz2021-03-301-10/+19
|
* Added Zig grammarHimujjal2021-03-234-0/+253