mirror of
https://github.com/soconnor0919/nand2tetris-zed.git
synced 2025-12-15 08:34:44 -05:00
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:
6
languages/hack-binary/brackets.scm
Normal file
6
languages/hack-binary/brackets.scm
Normal file
@@ -0,0 +1,6 @@
|
||||
; Bracket matching for Hack Binary
|
||||
; No special brackets needed for binary files
|
||||
|
||||
|
||||
|
||||
|
||||
11
languages/hack-binary/config.toml
Normal file
11
languages/hack-binary/config.toml
Normal 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
|
||||
|
||||
|
||||
|
||||
|
||||
14
languages/hack-binary/highlights.scm
Normal file
14
languages/hack-binary/highlights.scm
Normal 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
|
||||
|
||||
|
||||
|
||||
|
||||
4
languages/hack-binary/indents.scm
Normal file
4
languages/hack-binary/indents.scm
Normal file
@@ -0,0 +1,4 @@
|
||||
; Hack Binary indentation rules
|
||||
; Binary files typically don't need special indentation
|
||||
|
||||
|
||||
4
languages/hack-binary/outline.scm
Normal file
4
languages/hack-binary/outline.scm
Normal file
@@ -0,0 +1,4 @@
|
||||
; Hack Binary outline rules
|
||||
; Binary instructions don't have hierarchical structure
|
||||
|
||||
|
||||
Reference in New Issue
Block a user