Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/hdl/highlights.scm')
-rw-r--r--runtime/queries/hdl/highlights.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/runtime/queries/hdl/highlights.scm b/runtime/queries/hdl/highlights.scm
new file mode 100644
index 00000000..17d1a049
--- /dev/null
+++ b/runtime/queries/hdl/highlights.scm
@@ -0,0 +1,28 @@
+;; Keywords
+[
+ "CHIP"
+ "IN"
+ "OUT"
+ "PARTS"
+] @keyword
+
+(identifier) @variable
+
+(chip_definition
+ name: (identifier) @function)
+
+(in_section
+ input_pin_name: (identifier) @variable.parameter)
+
+(out_section
+ output_pin_name: (identifier) @variable.parameter)
+
+(part
+ chip_name: (identifier) @function)
+
+(connection
+ part_pin: (identifier) @variable.other.member
+ chip_pin: (identifier) @variable.parameter)
+
+;; Comments
+(comment) @comment