mirror of
https://github.com/soconnor0919/nand2tetris-zed.git
synced 2025-12-15 16:44:43 -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
18 lines
474 B
Scheme
18 lines
474 B
Scheme
; VM language outline queries
|
|
|
|
; Show function declarations in the outline
|
|
(function_declaration
|
|
(function_name) @name) @item
|
|
|
|
; Show label declarations for program flow
|
|
(label_command
|
|
(label_name) @name) @item
|
|
|
|
; Show function calls as outline items for navigation
|
|
(call_command
|
|
(function_name) @name) @item
|
|
|
|
; Show comments that look like section headers
|
|
(comment) @item
|
|
(#match? @item "^//\\s*[A-Z].*|^//.*[Ss]ection|^//.*[Pp]art|^//.*[Ff]unction|^//.*[Cc]lass")
|