mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 16:08:05 +00:00
tree-sitter-haskell 0.23.1's array.h is miscompiled by GCC 16 under strict aliasing, so Haskell parsing aborted the process (glibc "corrupted size vs. prev_size"); 0.24 fixes it. 0.24 renames the node type_synomym to type_synonym, so the Haskell outline query follows. Co-authored-by: NealimeKenna <22195793+NealimeKenna@users.noreply.github.com>
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.