mirror of
https://github.com/soconnor0919/nand2tetris-zed.git
synced 2025-12-12 23:24:45 -05:00
- Fixed HDL highlights query syntax error with #match? predicate - Replaced #match? with #any-of? for exact string matching - Fixed Hack Assembly outline query invalid field name - Improved HDL syntax highlighting with comprehensive patterns - Added HDL bracket matching for all syntax types - Fixed XML scope mismatch from text.xml to source.xml - Enhanced outline queries for better code navigation
27 lines
593 B
Scheme
27 lines
593 B
Scheme
; Jack outline queries for code structure
|
|
|
|
; Class declarations as main outline items
|
|
(class_declaration
|
|
name: (identifier) @name) @item
|
|
|
|
; Subroutine declarations
|
|
(subroutine_declaration
|
|
kind: "constructor"
|
|
name: (identifier) @name) @item
|
|
|
|
(subroutine_declaration
|
|
kind: "function"
|
|
name: (identifier) @name) @item
|
|
|
|
(subroutine_declaration
|
|
kind: "method"
|
|
name: (identifier) @name) @item
|
|
|
|
; Class variable declarations (field and static)
|
|
(class_variable_declaration
|
|
(identifier) @name) @item
|
|
|
|
; Local variable declarations
|
|
(local_variable_declaration
|
|
(identifier) @name) @item
|