mirror of
https://github.com/soconnor0919/nand2tetris-zed.git
synced 2025-12-15 08:34:44 -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
28 lines
457 B
Scheme
28 lines
457 B
Scheme
; HDL bracket matching
|
|
|
|
; Parentheses for part instantiations and connections
|
|
"(" @open
|
|
")" @close
|
|
|
|
; Square brackets for bus identifiers
|
|
"[" @open
|
|
"]" @close
|
|
|
|
; Curly braces for chip definitions
|
|
"{" @open
|
|
"}" @close
|
|
|
|
; Part instantiation containers
|
|
(part
|
|
"(" @open
|
|
")" @close) @container
|
|
|
|
; Bus identifier containers
|
|
(bus_identifier
|
|
"[" @open
|
|
"]" @close) @container
|
|
|
|
; Chip definition container
|
|
(chip_definition
|
|
"{" @open
|
|
"}" @close) @container |