Unnamed repository; edit this file 'description' to name the repository.
Add `*.{dtx,ins}` file types to the LaTeX language (#15559)
* Add `*.{dtx,ins}` file types to the LaTeX language
- dtx: A documented source file, whose comments can be extracted by DocStrip into another TeX document, and compiled to the PDF manual.
- ins: A installation file that controls DocStrip.
Both files use the same syntax of `*.tex`.
https://texfaq.org/FAQ-dtx
`*.{dtx,ins}` are common in repos that develop LaTeX packages and templates. https://github.com/josephwright/siunitx is an instance.
* Fix copy-paste error
| -rw-r--r-- | languages.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml index fbdecd6b..5b3b95be 100644 --- a/languages.toml +++ b/languages.toml @@ -1390,7 +1390,7 @@ source = { git = "https://github.com/gbprod/tree-sitter-twig", rev = "085648e01d name = "latex" scope = "source.tex" injection-regex = "tex" -file-types = ["tex", "sty", "cls", "Rd", "bbx", "cbx"] +file-types = ["tex", "dtx", "ins", "sty", "cls", "Rd", "bbx", "cbx"] comment-token = "%" language-servers = [ "texlab" ] indent = { tab-width = 4, unit = "\t" } |