@markuplint/pug-parser 4.4.0 → 4.5.1

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.
Files changed (2) hide show
  1. package/lib/parser.js +2 -13
  2. package/package.json +4 -4
package/lib/parser.js CHANGED
@@ -179,7 +179,6 @@ class PugParser extends Parser {
179
179
  const attr = super.visitAttr(token, {
180
180
  startState: AttrState.BeforeValue,
181
181
  quoteSet: [],
182
- quoteInValueChars: [],
183
182
  endOfUnquotedValueChars: [],
184
183
  });
185
184
  if (attr.type === 'spread') {
@@ -195,7 +194,7 @@ class PugParser extends Parser {
195
194
  }
196
195
  const attr = super.visitAttr(token, {
197
196
  quoteSet: [],
198
- quoteInValueChars: [],
197
+ noQuoteValueType: 'script',
199
198
  endOfUnquotedValueChars: [],
200
199
  });
201
200
  if (attr.type === 'spread') {
@@ -234,17 +233,7 @@ class PugParser extends Parser {
234
233
  case 'Template': {
235
234
  const value = super.visitAttr(attr.value, {
236
235
  startState: AttrState.BeforeValue,
237
- quoteSet: [
238
- { start: '"', end: '"' },
239
- { start: "'", end: "'" },
240
- { start: '`', end: '`' },
241
- ],
242
- quoteInValueChars: [
243
- { start: '"', end: '"' },
244
- { start: "'", end: "'" },
245
- { start: '`', end: '`' },
246
- { start: '${', end: '}' },
247
- ],
236
+ noQuoteValueType: 'script',
248
237
  });
249
238
  if (value.type === 'spread') {
250
239
  throw new ParserError('Unexpected attribute value', value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/pug-parser",
3
- "version": "4.4.0",
3
+ "version": "4.5.1",
4
4
  "description": "Pug parser for markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -21,11 +21,11 @@
21
21
  "clean": "tsc --build --clean"
22
22
  },
23
23
  "dependencies": {
24
- "@markuplint/html-parser": "4.4.0",
24
+ "@markuplint/html-parser": "4.5.1",
25
25
  "@markuplint/ml-ast": "4.2.0",
26
- "@markuplint/parser-utils": "4.4.0",
26
+ "@markuplint/parser-utils": "4.5.1",
27
27
  "pug-lexer": "5.0.1",
28
28
  "pug-parser": "6.0.0"
29
29
  },
30
- "gitHead": "ad3db077e96bea0666c9105b250f895263907a87"
30
+ "gitHead": "b029c86a6b3a9ea8189d2e5535e3023aaea753fd"
31
31
  }