Skip to content

Commit

Permalink
Add support for pug (#679)
Browse files Browse the repository at this point in the history
* Add pug support

Closes #671

* Add test for Pug
  • Loading branch information
spenserblack authored Jan 11, 2021
1 parent b6f873f commit 14d5adb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,15 @@
"line_comment": ["//"],
"extensions": ["proto"]
},
"Pug" : {
"line_comment": ["//", "//-"],
"quotes": [
["#{\\\"", "\\\"}"],
["#{'", "'}"],
["#{`", "`}"]
],
"extensions": ["pug"]
},
"PureScript": {
"nested": true,
"line_comment": ["--"],
Expand Down
13 changes: 13 additions & 0 deletions tests/data/pug.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//- 13 lines, 8 code, 3 comments, 2 blanks
doctype html
// this comment will be translated to an HTML comment
//- this comment will be excluded from the generated HTML
html
head
title Hello, World!
body
p
| Hello,
| World!

0 comments on commit 14d5adb

Please sign in to comment.