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
This commit is contained in:
2025-09-11 11:24:24 -04:00
commit c231dbfd27
133 changed files with 2792 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
; Bracket matching for Hack Binary
; No special brackets needed for binary files

View File

@@ -0,0 +1,11 @@
name = "Hack Binary"
grammar = "hack_binary"
scope = "source.hack_binary"
path_suffixes = ["hackbin"]
line_comments = ["// "]
tab_size = 4
hard_tabs = false

View File

@@ -0,0 +1,14 @@
; Hack Binary syntax highlighting queries
; 16-bit binary instructions
(bit_sequence) @constant.numeric
; Comments
(comment) @comment
; Binary digits highlighting
(bit_sequence) @constant.numeric

View File

@@ -0,0 +1,4 @@
; Hack Binary indentation rules
; Binary files typically don't need special indentation

View File

@@ -0,0 +1,4 @@
; Hack Binary outline rules
; Binary instructions don't have hierarchical structure