Skip to content

Commit

Permalink
feat(corn): more highlights, comment injections
Browse files Browse the repository at this point in the history
  • Loading branch information
ribru17 committed May 13, 2024
1 parent d5a1c2b commit 944a6bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 15 additions & 5 deletions queries/corn/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"let" @keyword

"in" @keyword
[
"let"
"in"
(null)
] @keyword

[
"{"
Expand All @@ -9,7 +11,12 @@
"]"
] @punctuation.bracket

"." @punctuation.delimiter
[
"."
"="
] @punctuation.delimiter

".." @operator

(input) @constant

Expand All @@ -21,6 +28,9 @@

(float) @number.float

(float
"." @number.float)

(boolean) @boolean

(null) @keyword
(path_seg) @property
2 changes: 2 additions & 0 deletions queries/corn/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

0 comments on commit 944a6bc

Please sign in to comment.