Skip to content

Commit

Permalink
better syntax highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
kentookura committed Jan 4, 2024
1 parent 38c2017 commit f355f6d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 13 deletions.
57 changes: 44 additions & 13 deletions queries/forester/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,20 +1,51 @@
"transclude" @keyword
"title" @field
"date" @field
"taxon" @field
"ul" @field
"ol" @field
"li" @field
"p" @field
"code" @field
[
"{"
"}"
"("
")"
"["
"]"
"\\"
]
@punctuation.delimiter

[
"transclude"
"import"
"export"
]
@include

[
"title"
"date"
"taxon"
] @field

[
"ul"
"ol"
"li"
"p"
"code"
]@function.builtin


"tag" @tag

"def" @define
"object" @lsp.type.class
"scope" @field
"put" @keyword
"query" @keyword

(ident) @field
(addr) @text.underline
(link_label) @label
(link_dest) @text.underline @variable
(ident) @function
;;(identifier) @field
;;(arg) @variable
(em (text)) @text.emphasis
(addr) @underline
(label) @text.uri
(title (_)* @text.title)
(date (_)* @text.title)
(link_dest dest: (_) @variable)
(external_link) @text.underline
Empty file added queries/forester/links.scm
Empty file.

0 comments on commit f355f6d

Please sign in to comment.