mirror of https://github.com/helix-editor/helix
Add DTD language support (#6644)
- Added syntax highlighting for the DTD subset of the XML spec. - Included .dtd and .ent as common file extensionspull/6732/head
parent
fff8543b58
commit
161fef2166
@ -0,0 +1,39 @@
|
||||
; highlights.scm
|
||||
|
||||
(comment) @comment
|
||||
|
||||
[
|
||||
"ELEMENT"
|
||||
"ATTLIST"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"#REQUIRED"
|
||||
"#IMPLIED"
|
||||
"#FIXED"
|
||||
"#PCDATA"
|
||||
] @keyword.directive
|
||||
|
||||
[
|
||||
"EMPTY"
|
||||
"ANY"
|
||||
"SYSTEM"
|
||||
"PUBLIC"
|
||||
] @constant
|
||||
|
||||
(element_name) @module
|
||||
|
||||
|
||||
(attribute_name) @attribute
|
||||
|
||||
(system_literal) @string
|
||||
(pubid_literal) @string
|
||||
(attribute_value) @string
|
||||
|
||||
[
|
||||
">"
|
||||
"</"
|
||||
"<?"
|
||||
"?>"
|
||||
"<!"
|
||||
] @punctuation.bracket
|
@ -0,0 +1,2 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
Loading…
Reference in New Issue