mirror of
https://github.com/soconnor0919/tree-sitter-compare-output.git
synced 2026-02-04 23:56:33 -05:00
Initial commit: Tree-sitter grammar for Compare Output language
This commit is contained in:
40
queries/highlights.scm
Normal file
40
queries/highlights.scm
Normal file
@@ -0,0 +1,40 @@
|
||||
; 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
|
||||
Reference in New Issue
Block a user