@markuplint/svelte-parser 4.3.1-dev.1 → 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.
Files changed (2) hide show
  1. package/lib/parser.js +3 -10
  2. package/package.json +6 -6
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.1-dev.1+98cb4470a",
3
+ "version": "4.5.0",
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.3.1-dev.1+98cb4470a",
28
- "@markuplint/ml-ast": "4.1.1-dev.1+98cb4470a",
29
- "@markuplint/parser-utils": "4.3.1-dev.1+98cb4470a",
30
- "svelte": "4.2.12"
27
+ "@markuplint/html-parser": "4.5.0",
28
+ "@markuplint/ml-ast": "4.2.0",
29
+ "@markuplint/parser-utils": "4.5.0",
30
+ "svelte": "4.2.14"
31
31
  },
32
- "gitHead": "98cb4470ad994275f52b0c3919f8d27dda8c38bc"
32
+ "gitHead": "d5c8786b0dbbd82cdd89018dd57941d62bbe8d06"
33
33
  }