We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94fe4ef commit 0951d73Copy full SHA for 0951d73
src/languages/soy.js
@@ -9,7 +9,7 @@ export default {
9
const stringPattern = /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;
10
const numberPattern = /\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;
11
12
- return /** @type {Grammar} */ ({
+ return {
13
'ignore-literal': {
14
pattern: /(\{literal\})[\s\S]*?(?=\{\/literal\})/,
15
lookbehind: true,
@@ -82,11 +82,7 @@ export default {
82
'punctuation': /[{}()\[\]|.,:]/,
83
},
84
85
- $tokenize: /** @type {Grammar['$tokenize']} */ (embeddedIn('markup')),
86
- });
+ $tokenize: embeddedIn('markup'),
+ };
87
88
};
89
-
90
-/**
91
- * @typedef {import('../types.d.ts').Grammar} Grammar
92
- */
0 commit comments