From 73134c73b0b41ff68a16d2824a8df4e37468c264 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Thu, 20 Apr 2017 20:41:06 -0400 Subject: [PATCH] Add more LaTeX extensions --- CHANGELOG.md | 1 + README.md | 2 +- src/languages/latex.coffee | 9 +++++++++ src/options.json | 13 +++++++++++-- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3742d94..d2797bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # v0.29.23 (2016-04-20) - See #1607. Add support for PHP-CS-Fixer 1, along with version 2. - Closes #1179. Replace atom-beautify.general.analytics option with configuration option +- Add more LaTeX extensions # v0.29.3 to v0.29.22 (2016-04-16 to 2017-04-15) - Add support for additional wrap attribute options of js-beautify (html): force-aligned and force-expand-multiline. diff --git a/README.md b/README.md index 78f0730..3870504 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ See [all supported options in the documentation at `docs/options.md`](docs/opti | JavaScript | `JavaScript` |`.js` | [`ESLint Fixer`](https://github.com/eslint/eslint), [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`JSCS Fixer`](https://github.com/jscs-dev/node-jscs/), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) | | JSON | `JSON` |`.json` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) | | JSX | `JSX`, `JavaScript (JSX)`, `Babel ES6 JavaScript`, `JavaScript with JSX` |`.jsx`, `.js` | [`JS Beautify`](https://github.com/beautify-web/js-beautify), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) | -| LaTeX | `LaTeX` |`.tex` | [`Latex Beautify`](https://github.com/cmhughes/latexindent.pl) (Default) | +| LaTeX | `BibTeX`, `LaTeX`, `TeX` |`.bib`, `.tex`, `.sty`, `.cls`, `.dtx`, `.ins`, `.bbx`, `.cbx` | [`Latex Beautify`](https://github.com/cmhughes/latexindent.pl) (Default) | | LESS | `LESS` |`.less` | [`CSScomb`](https://github.com/csscomb/csscomb.js), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) | | Lua | `Lua` |`.lua` | [`Lua beautifier`](https://www.perl.org/) (Default) | | Markdown | `GitHub Markdown` |`.markdown`, `.md` | [`Remark`](https://github.com/wooorm/remark), [`Tidy Markdown`](https://github.com/slang800/tidy-markdown) (Default) | diff --git a/src/languages/latex.coffee b/src/languages/latex.coffee index 655db34..8cf625a 100644 --- a/src/languages/latex.coffee +++ b/src/languages/latex.coffee @@ -8,14 +8,23 @@ module.exports = { Supported Grammars ### grammars: [ + "BibTeX" "LaTeX" + "TeX" ] ### Supported extensions ### extensions: [ + "bib" "tex" + "sty" + "cls" + "dtx" + "ins" + "bbx" + "cbx" ] defaultBeautifier: "Latex Beautify" diff --git a/src/options.json b/src/options.json index e7894a9..24a35c4 100644 --- a/src/options.json +++ b/src/options.json @@ -4193,10 +4193,19 @@ "Latex Beautify" ], "grammars": [ - "LaTeX" + "BibTeX", + "LaTeX", + "TeX" ], "extensions": [ - "tex" + "bib", + "tex", + "sty", + "cls", + "dtx", + "ins", + "bbx", + "cbx" ], "properties": { "indent_char": {