Skip to content

Commit

Permalink
Merge pull request #111 from jirikrepl/master
Browse files Browse the repository at this point in the history
added .json file extension as alias for .js
  • Loading branch information
pioug committed Apr 10, 2020
2 parents 4b4e7b3 + 6e3d95d commit 450cb43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -270,7 +270,7 @@ Default: `html`

The syntax type of source string to preprocess. There are 3 main syntax variants:
- `html`, aliases: `xml`
- `js`, aliases: `javascript`, `jsx`, `c`, `cc`, `cpp`, `cs`, `csharp`, `java`, `less`, `sass`, `scss`, `css`, `php`,
- `js`, aliases: `javascript`, `jsx`, `json`, `c`, `cc`, `cpp`, `cs`, `csharp`, `java`, `less`, `sass`, `scss`, `css`, `php`,
`ts`, `tsx`, `peg`, `pegjs`, `jade`, `styl`
- `coffee`, aliases: `bash`, `shell`, `sh`

Expand Down
1 change: 1 addition & 0 deletions lib/regexrules.js
Expand Up @@ -93,6 +93,7 @@ module.exports.xml = module.exports.html;

module.exports.javascript = module.exports.js;
module.exports.jsx = module.exports.js;
module.exports.json = module.exports.js;
module.exports.c = module.exports.js;
module.exports.cc = module.exports.js;
module.exports.cpp = module.exports.js;
Expand Down

0 comments on commit 450cb43

Please sign in to comment.