Files
nand2tetris-zed/languages/compare-output/highlights.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

40 lines
836 B
Scheme

; Compare/Output file syntax highlighting queries based on actual node types
; Header row elements
(header_row) @markup.heading
; Column names in headers
(column_name) @property
; Register names in headers (RAM[0], RAM[256], etc.)
(register_name) @variable.builtin
; Pin names in headers
(pin_name) @property
; Generic names in headers
(generic_name) @property
; Data values
(binary_value) @constant.numeric
(decimal_value) @constant.numeric
(register_reference) @variable
; Table structure
"|" @punctuation.delimiter
; Separator rows
(separator_row) @comment
; Specific highlighting for common patterns
; Binary patterns (16-bit values)
(binary_value) @constant.numeric
; Decimal numbers
(decimal_value) @constant.numeric
; RAM references in headers
(register_name) @variable.builtin
; Common pin names
(pin_name) @property