aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorseshotake2022-11-01 00:23:09 +0000
committerGitHub2022-11-01 00:23:09 +0000
commited7ea8c9ba639daebdbc81630bd789aeb344e2d4 (patch)
treefce07e1367d1e4c0e4d457aa54c2a1f72ba2bbf4 /runtime
parent9df43584924a72be88f537ac432e5976430fa3f1 (diff)
add highlights for env and ini file formats (#4536)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/env/highlights.scm19
-rw-r--r--runtime/queries/ini/highlights.scm6
2 files changed, 25 insertions, 0 deletions
diff --git a/runtime/queries/env/highlights.scm b/runtime/queries/env/highlights.scm
new file mode 100644
index 00000000..6a27e8e5
--- /dev/null
+++ b/runtime/queries/env/highlights.scm
@@ -0,0 +1,19 @@
+(env_variable (quoted_string)) @string
+(env_variable (unquoted_string)) @string
+
+(env_key) @keyword
+
+((variable) @keyword
+ (#match? @keyword "^([A-Z][A-Z_0-9]*)$"))
+
+[
+ "{"
+ "}"
+] @punctuation.bracket
+
+[
+ "$"
+ "="
+] @operator
+
+(comment) @comment \ No newline at end of file
diff --git a/runtime/queries/ini/highlights.scm b/runtime/queries/ini/highlights.scm
new file mode 100644
index 00000000..6277a067
--- /dev/null
+++ b/runtime/queries/ini/highlights.scm
@@ -0,0 +1,6 @@
+(section_name) @namespace
+
+(setting_name) @keyword
+(setting_value) @string
+
+(comment) @comment