aboutsummaryrefslogtreecommitdiffstats
path: root/queries/fish/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/fish/highlights.scm')
-rw-r--r--queries/fish/highlights.scm24
1 files changed, 12 insertions, 12 deletions
diff --git a/queries/fish/highlights.scm b/queries/fish/highlights.scm
index 8d0fba29a..28ddf0b98 100644
--- a/queries/fish/highlights.scm
+++ b/queries/fish/highlights.scm
@@ -35,29 +35,29 @@
[
"if"
"end"
-] @conditional)
+] @keyword.conditional)
(switch_statement
[
"switch"
"end"
-] @conditional)
+] @keyword.conditional)
(case_clause
[
"case"
-] @conditional)
+] @keyword.conditional)
(else_clause
[
"else"
-] @conditional)
+] @keyword.conditional)
(else_if_clause
[
"else"
"if"
-] @conditional)
+] @keyword.conditional)
;; Loops/Blocks
@@ -65,19 +65,19 @@
[
"while"
"end"
-] @repeat)
+] @keyword.repeat)
(for_statement
[
"for"
"end"
-] @repeat)
+] @keyword.repeat)
(begin_statement
[
"begin"
"end"
-] @repeat)
+] @keyword.repeat)
;; Keywords
@@ -106,7 +106,7 @@
(command
argument: [
- (word) @parameter (#lua-match? @parameter "^[-]")
+ (word) @variable.parameter (#lua-match? @variable.parameter "^[-]")
]
)
@@ -137,7 +137,7 @@
option: [
(word)
(concatenation (word))
- ] @parameter (#lua-match? @parameter "^[-]")
+ ] @variable.parameter (#lua-match? @variable.parameter "^[-]")
)
;; Strings
@@ -159,5 +159,5 @@
((word) @boolean
(#any-of? @boolean "true" "false"))
-((program . (comment) @preproc)
- (#lua-match? @preproc "^#!/"))
+((program . (comment) @keyword.directive)
+ (#lua-match? @keyword.directive "^#!/"))