Skip to content

Commit

Permalink
fix(highlights): comment out problematic query
Browse files Browse the repository at this point in the history
and rearrange/refactor some other queries
  • Loading branch information
ObserverOfTime committed Oct 20, 2024
1 parent ed4d0b8 commit e484484
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
11 changes: 6 additions & 5 deletions queries/dtd/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
;; XML declaration

(TextDecl "xml" @keyword)
"xml" @keyword

(TextDecl [ "version" "encoding" ] @property)
[ "version" "encoding" ] @property

(TextDecl (EncName) @string.special)
(EncName) @string.special

(TextDecl (VersionNum) @number)
(VersionNum) @number

;; Processing instructions

Expand Down Expand Up @@ -121,7 +121,8 @@

;; Misc

[ "INCLUDE" "IGNORE" ] @keyword
; FIXME: enable when ts test is fixed
; [ "INCLUDE" "IGNORE" ] @keyword

(Comment) @comment

Expand Down
28 changes: 14 additions & 14 deletions queries/xml/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
;; XML declaration

(XMLDecl "xml" @keyword)
"xml" @keyword

(XMLDecl [ "version" "encoding" "standalone" ] @property)
[ "version" "encoding" "standalone" ] @property

(XMLDecl (EncName) @string.special)
(EncName) @string.special

(XMLDecl (VersionNum) @number)
(VersionNum) @number

(XMLDecl [ "yes" "no" ] @boolean)
[ "yes" "no" ] @boolean

;; Processing instructions

Expand Down Expand Up @@ -137,15 +137,6 @@

(Attribute (AttValue) @string)

;; Text

(CharData) @markup

(CDSect
(CDStart) @markup.heading
(CData) @markup.raw
"]]>" @markup.heading)

;; Delimiters & punctuation

[
Expand All @@ -161,6 +152,15 @@

[ "," "|" "=" ] @operator

;; Text

(CharData) @markup

(CDSect
(CDStart) @markup.heading
(CData) @markup.raw
"]]>" @markup.heading)

;; Misc

(Comment) @comment
Expand Down

0 comments on commit e484484

Please sign in to comment.