Skip to content

Commit

Permalink
Merge pull request #1617 from papatience/extensions
Browse files Browse the repository at this point in the history
Add more LaTeX extensions
  • Loading branch information
Glavin001 authored May 28, 2017
2 parents 8ead568 + 73134c7 commit 531f120
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# v0.29.23 (2017-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.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,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) |
Expand Down
9 changes: 9 additions & 0 deletions src/languages/latex.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 11 additions & 2 deletions src/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -4193,10 +4193,19 @@
"Latex Beautify"
],
"grammars": [
"LaTeX"
"BibTeX",
"LaTeX",
"TeX"
],
"extensions": [
"tex"
"bib",
"tex",
"sty",
"cls",
"dtx",
"ins",
"bbx",
"cbx"
],
"properties": {
"indent_char": {
Expand Down

0 comments on commit 531f120

Please sign in to comment.