@markuplint/pug-parser 4.4.0 → 4.5.0
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/lib/parser.js +2 -13
- 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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "4.5.0",
|
|
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.
|
|
24
|
+
"@markuplint/html-parser": "4.5.0",
|
|
25
25
|
"@markuplint/ml-ast": "4.2.0",
|
|
26
|
-
"@markuplint/parser-utils": "4.
|
|
26
|
+
"@markuplint/parser-utils": "4.5.0",
|
|
27
27
|
"pug-lexer": "5.0.1",
|
|
28
28
|
"pug-parser": "6.0.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "d5c8786b0dbbd82cdd89018dd57941d62bbe8d06"
|
|
31
31
|
}
|