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:
9
languages/xml/brackets.scm
Normal file
9
languages/xml/brackets.scm
Normal file
@@ -0,0 +1,9 @@
|
||||
; Bracket matching for XML
|
||||
("<" @open ">" @close)
|
||||
("</" @open ">" @close)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
8
languages/xml/config.toml
Normal file
8
languages/xml/config.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
name = "XML"
|
||||
grammar = "xml"
|
||||
scope = "source.xml"
|
||||
path_suffixes = ["xml"]
|
||||
tab_size = 2
|
||||
hard_tabs = false
|
||||
|
||||
|
||||
14
languages/xml/highlights.scm
Normal file
14
languages/xml/highlights.scm
Normal file
@@ -0,0 +1,14 @@
|
||||
; XML syntax highlighting queries
|
||||
|
||||
; Tags
|
||||
(tag_name) @tag
|
||||
(attribute_name) @property
|
||||
(attribute_value) @string
|
||||
|
||||
; Text content
|
||||
(text) @text
|
||||
|
||||
; Comments
|
||||
(comment) @comment
|
||||
|
||||
|
||||
8
languages/xml/indents.scm
Normal file
8
languages/xml/indents.scm
Normal file
@@ -0,0 +1,8 @@
|
||||
; XML indentation rules
|
||||
(element) @indent
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
9
languages/xml/outline.scm
Normal file
9
languages/xml/outline.scm
Normal file
@@ -0,0 +1,9 @@
|
||||
; XML outline queries
|
||||
(element
|
||||
(tag_name) @name) @item
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user