Files
nand2tetris-zed/languages/jack/outline.scm
Sean O'Connor c231dbfd27 Fix HDL and Hack Assembly syntax highlighting and queries
- 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
2025-09-11 11:24:24 -04:00

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