boxwood 0.60.2 → 0.60.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boxwood",
3
- "version": "0.60.2",
3
+ "version": "0.60.3",
4
4
  "description": "Compile HTML templates into JS",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,8 +11,12 @@ function isClosingBracket (character) {
11
11
  return character === CLOSING_ANGLE_BRACKET
12
12
  }
13
13
 
14
+ const IGNORED_TOKENS = [
15
+ 'rawtext', 'commentStart', 'commentData', 'commentEnd'
16
+ ]
17
+
14
18
  function verifyBrackets (source) {
15
- const tokens = tokenize(source).filter(token => token[0] !== 'rawtext')
19
+ const tokens = tokenize(source).filter(token => !IGNORED_TOKENS.includes(token[0]))
16
20
  const text = tokens.map(token => token[1]).join('')
17
21
 
18
22
  const errors = []