дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 03:05:40 +02:00
Every grammar-only language now gets colours: Zig, Nix and Make from the queries their crates ship, GraphQL and HCL (Terraform) from our own, as those crates ship none. Grammar queries follow two conventions, so the precedence is set per grammar: nvim-style (the later pattern wins) or tree-sitter CLI style (the first one wins, Nix). nvim's `#lua-match?` is evaluated; patterns with predicates we cannot evaluate no longer match unconditionally, which coloured every Zig identifier as a constant. Claude-Session: https://claude.ai/code/session_01B65qLEKnkeYTGdbwhLpjCu
Outline queries (<grammar>/outline.scm), consumed by src/syntax/outline.rs.
Captures: @def.<kind> (outline + symbol index), @outline.<kind> (outline only),
@name (identifier; several are joined with .), @detail, @trait (Rust impls),
@container (explicit container, e.g. Go receivers). Captures starting with _ are ignored.
Kinds: class interface struct enum enum_member trait function method constructor
field property variable constant module namespace package type macro event operator
key heading impl extension. A function directly inside a type becomes a method.
When several patterns capture the same node, the earliest pattern wins.