@markuplint/svelte-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.
- package/lib/parser.js +3 -10
- package/package.json +5 -5
package/lib/parser.js
CHANGED
|
@@ -144,16 +144,9 @@ class SvelteParser extends Parser {
|
|
|
144
144
|
visitAttr(token) {
|
|
145
145
|
const attr = super.visitAttr(token, {
|
|
146
146
|
quoteSet: [
|
|
147
|
-
{ start: '"', end: '"' },
|
|
148
|
-
{ start: "'", end: "'" },
|
|
149
|
-
{ start: '{', end: '}' },
|
|
150
|
-
],
|
|
151
|
-
quoteInValueChars: [
|
|
152
|
-
{ start: '"', end: '"' },
|
|
153
|
-
{ start: "'", end: "'" },
|
|
154
|
-
{ start: '`', end: '`' },
|
|
155
|
-
{ start: '{', end: '}' },
|
|
156
|
-
{ start: '${', end: '}' },
|
|
147
|
+
{ start: '"', end: '"', type: 'string' },
|
|
148
|
+
{ start: "'", end: "'", type: 'string' },
|
|
149
|
+
{ start: '{', end: '}', type: 'script' },
|
|
157
150
|
],
|
|
158
151
|
startState:
|
|
159
152
|
// is shorthand attribute
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/svelte-parser",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"description": "Svelte parser for markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"clean": "tsc --build --clean"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@markuplint/html-parser": "4.
|
|
27
|
+
"@markuplint/html-parser": "4.5.1",
|
|
28
28
|
"@markuplint/ml-ast": "4.2.0",
|
|
29
|
-
"@markuplint/parser-utils": "4.
|
|
30
|
-
"svelte": "4.2.
|
|
29
|
+
"@markuplint/parser-utils": "4.5.1",
|
|
30
|
+
"svelte": "4.2.15"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "b029c86a6b3a9ea8189d2e5535e3023aaea753fd"
|
|
33
33
|
}
|