summaryrefslogtreecommitdiff
path: root/runtime/queries/env
diff options
context:
space:
mode:
authorseshotake2022-11-01 00:23:09 +0000
committerGitHub2022-11-01 00:23:09 +0000
commited7ea8c9ba639daebdbc81630bd789aeb344e2d4 (patch)
treefce07e1367d1e4c0e4d457aa54c2a1f72ba2bbf4 /runtime/queries/env
parent9df43584924a72be88f537ac432e5976430fa3f1 (diff)
add highlights for env and ini file formats (#4536)
Diffstat (limited to 'runtime/queries/env')
-rw-r--r--runtime/queries/env/highlights.scm19
1 files changed, 19 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