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
30 lines
686 B
Scheme
30 lines
686 B
Scheme
; HDL outline queries for code structure
|
|
|
|
; Chip declarations as main outline items
|
|
(chip_definition
|
|
name: (identifier) @name) @item
|
|
|
|
; Input pins in IN section (grouped under chip)
|
|
(in_section
|
|
input_pin_name: (identifier) @name) @item
|
|
|
|
; Output pins in OUT section (grouped under chip)
|
|
(out_section
|
|
output_pin_name: (identifier) @name) @item
|
|
|
|
; Built-in chip references
|
|
(builtin_body
|
|
chip_name: (identifier) @name) @item
|
|
|
|
; Clocked body references
|
|
(clocked_body
|
|
(identifier) @name) @item
|
|
|
|
; Part instantiations within PARTS section
|
|
(part
|
|
chip_name: (identifier) @name) @item
|
|
|
|
; Connections within parts (for detailed view)
|
|
(connection
|
|
part_pin: (identifier) @name) @item
|