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 9bd952b commit 21f425dCopy full SHA for 21f425d
build/build.ts
@@ -85,7 +85,9 @@ function updateGrammarVariables(grammar: any) {
85
delete grammar.variables;
86
const variableReplacers: VariableReplacer[] = [];
87
for (const variableName in variables) {
88
- variableReplacers.push([new RegExp(`{{${variableName}}}`, "gim"), variables[variableName]]);
+ // Replace the pattern with earlier variables
89
+ const pattern = replacePatternVariables(variables[variableName], variableReplacers);
90
+ variableReplacers.push([new RegExp(`{{${variableName}}}`, "gim"), pattern]);
91
}
92
transformGrammarRepository(
93
grammar,
0 commit comments