Skip to content

Commit 0951d73

Browse files
soy
1 parent 94fe4ef commit 0951d73

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/languages/soy.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
const stringPattern = /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;
1010
const numberPattern = /\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;
1111

12-
return /** @type {Grammar} */ ({
12+
return {
1313
'ignore-literal': {
1414
pattern: /(\{literal\})[\s\S]*?(?=\{\/literal\})/,
1515
lookbehind: true,
@@ -82,11 +82,7 @@ export default {
8282
'punctuation': /[{}()\[\]|.,:]/,
8383
},
8484
},
85-
$tokenize: /** @type {Grammar['$tokenize']} */ (embeddedIn('markup')),
86-
});
85+
$tokenize: embeddedIn('markup'),
86+
};
8787
},
8888
};
89-
90-
/**
91-
* @typedef {import('../types.d.ts').Grammar} Grammar
92-
*/

0 commit comments

Comments
 (0)