Skip to content

Commit

Permalink
Change shebang to a keyword directive
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Mar 11, 2024
1 parent dcebdc7 commit 9c83900
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions build-flavored-queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
(r"@keyword.control.conditional", r"@conditional"),
(r"@keyword.control.import", r"@keyword"),
(r"@keyword.module", r"@keyword"),
(r"@keyword.directive", r"@comment"),
(r"@variable.parameter", r"@parameter"),
# Changes to indent queries
(r"@indent\s+@extend", r"@indent.begin"),
Expand Down
2 changes: 1 addition & 1 deletion queries-flavored/helix/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

(comment) @comment.line

(shebang) @comment
(shebang) @keyword.directive

; highlight known settings (filtering does not always work)
(setting
Expand Down
2 changes: 1 addition & 1 deletion queries-flavored/lapce/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

(comment) @comment.line

(shebang) @comment
(shebang) @keyword.directive

; highlight known settings (filtering does not always work)
(setting
Expand Down
2 changes: 1 addition & 1 deletion queries-flavored/nvim-next/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

(comment) @spell @comment

(shebang) @comment
(shebang) @keyword.directive

; highlight known settings (filtering does not always work)
(setting
Expand Down
2 changes: 1 addition & 1 deletion queries-flavored/zed/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

(comment) @comment.line

(shebang) @comment
(shebang) @keyword.directive

; highlight known settings (filtering does not always work)
(setting
Expand Down
2 changes: 1 addition & 1 deletion queries-src/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@

(comment) @spell @comment.line

(shebang) @comment
(shebang) @keyword.directive

; highlight known settings (filtering does not always work)
(setting
Expand Down
4 changes: 2 additions & 2 deletions test/highlight/recipes.just
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/use/bin/env just
# <- comment
# ^^^^^^^^^^^^^^^^^ comment
# <- keyword.directive
# ^^^^^^^^^^^^^^^^^ keyword.directive

foo:
# <- function
Expand Down
2 changes: 1 addition & 1 deletion test/highlight/statements.just
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env just
# <- comment
# <- keyword.directive

foo := "abc"
# <- variable
Expand Down

0 comments on commit 9c83900

Please sign in to comment.