Skip to content

Commit

Permalink
[XML] Add support for dtd/ent/mod files (sublimehq#2152)
Browse files Browse the repository at this point in the history
This commit exposes the doctype definition part of the XML.sublime-syntax to be used by dedicated DTD files.

Notes:

1. The test cases for doctype definitions are located in the
   syntax_test_xml.xml.
2. This file type seems not to be used by any officially listed 3rd
   party package at packagecontrol.io so far.
  • Loading branch information
deathaxe authored Jul 14, 2020
1 parent 3bea839 commit 85fcc33
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions XML/DTD.sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
%YAML 1.2
---
name: DTD
file_extensions:
- dtd
- ent
- mod
scope: text.xml.dtd

contexts:
main:
- include: Packages/XML/XML.sublime-syntax#dtd

0 comments on commit 85fcc33

Please sign in to comment.