diff options
| author | David Czihak <git@dcz.at> | 2026-05-10 19:21:33 +0200 |
|---|---|---|
| committer | David Czihak <git@dcz.at> | 2026-05-10 19:21:33 +0200 |
| commit | b80b9c1f82585677a7c042557576c41b1670d259 (patch) | |
| tree | 9a741dfd7725205dba35b42bc6d5a6a7e084ced0 /Zig.novaextension/Queries/highlights.scm | |
| parent | 33ea57ddd69f35f3f2db64a1a2d31b410ed7afb2 (diff) | |
Chore: Move extension bundle into Zig.novaextension/ subdirectory
Separates Nova extension resources from development-only items.
Development items (ISSUES.md, vendor/, examples/) remain at the repo root.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Zig.novaextension/Queries/highlights.scm')
| -rw-r--r-- | Zig.novaextension/Queries/highlights.scm | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/Zig.novaextension/Queries/highlights.scm b/Zig.novaextension/Queries/highlights.scm new file mode 100644 index 0000000..b366bc7 --- /dev/null +++ b/Zig.novaextension/Queries/highlights.scm @@ -0,0 +1,123 @@ +(comment) @comment + +[ + (string) + (multiline_string) + (character) +] @string + +[ + (integer) + (float) +] @value.number + +[ + "true" + "false" +] @value.boolean + +[ + "null" + "undefined" + "unreachable" +] @value.null + +(builtin_type) @identifier.type +(builtin_identifier) @identifier.core + +((builtin_identifier) @processing + (#match? @processing "^@(import|cImport)$")) + +((identifier) @identifier.core + (#eq? @identifier.core "_")) + +(parameter + name: (identifier) @identifier.argument) + +(payload + (identifier) @identifier.argument) + +(field_expression + member: (identifier) @identifier.property) + +(field_initializer + (identifier) @identifier.property) + +(function_declaration + name: (identifier) @identifier.function) + +(call_expression + function: (identifier) @identifier.function) + +(call_expression + function: (field_expression + member: (identifier) @identifier.function)) + +((identifier) @identifier.type + (#match? @identifier.type "^[A-Z][A-Za-z0-9_]*$")) + +((identifier) @identifier.constant + (#match? @identifier.constant "^[A-Z][A-Z0-9_]+$")) + +[ + "asm" + "const" + "defer" + "errdefer" + "error" + "return" + "test" + "var" +] @keyword + +[ + "struct" + "union" + "enum" + "opaque" + "fn" +] @keyword.construct + +[ + "if" + "else" + "switch" + "for" + "while" + "try" + "catch" + "break" + "continue" +] @keyword.condition + +[ + "usingnamespace" + "export" + "comptime" + "inline" + "noinline" + "extern" + "pub" + "packed" + "threadlocal" + "volatile" + "allowzero" + "noalias" + "addrspace" + "align" + "callconv" + "linksection" + "async" + "await" + "suspend" + "nosuspend" + "resume" +] @keyword.modifier + +[ + "and" + "or" + "orelse" +] @keyword.operator + +(ERROR) @invalid |
