mirror of
https://github.com/soconnor0919/nand2tetris-zed.git
synced 2025-12-15 16:44:43 -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:
26
languages/test-script/outline.scm
Normal file
26
languages/test-script/outline.scm
Normal file
@@ -0,0 +1,26 @@
|
||||
; Test script outline queries
|
||||
|
||||
; Show repeat blocks in the outline
|
||||
(repeat_command
|
||||
(number) @name) @item
|
||||
(#set! item.kind "loop")
|
||||
|
||||
; Show while blocks in the outline
|
||||
(while_command
|
||||
(condition) @name) @item
|
||||
(#set! item.kind "loop")
|
||||
|
||||
; Show load commands for file references
|
||||
(load_command
|
||||
(filename) @name) @item
|
||||
(#set! item.kind "file")
|
||||
|
||||
; Show set commands with variable assignments
|
||||
(set_command
|
||||
(variable_reference) @name) @item
|
||||
(#set! item.kind "variable")
|
||||
|
||||
; Show comments that look like section headers
|
||||
(comment) @item
|
||||
(#match? @item "^//\\s*[A-Z].*|^//.*[Ss]ection|^//.*[Tt]est|^//.*[Pp]hase")
|
||||
(#set! item.kind "comment")
|
||||
Reference in New Issue
Block a user