дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 11:15:40 +02:00
Kotlin files showed declarations, parameters, fields, annotations, KDoc and escapes in generic lexer colours, because the CodeMirror mode alone drove their highlighting. Kotlin now gets supplemental backend marks from its tree-sitter grammar, which take precedence over lexer marks while LSP semantic marks stay innermost. The semantic provider also maps the mutable and operator-declaration tokens. Siblings covered: other grammars keep their parameter colours, and constructor default values are highlighted as values. Co-authored-by: shohruh-genius <[email protected]>
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.