Skip to content
Snippets Groups Projects
Commit 438079cb authored by Jakub Vrána's avatar Jakub Vrána Committed by Marijn Haverbeke
Browse files

[soy mode] Treat {@inject} same as {@param}

`{@inject}` is used for injected parameters instead of normal
parameters. It behaves the same as `{@param}`.
parent c15090d1
No related branches found
No related tags found
No related merge requests found
......@@ -256,7 +256,7 @@
state.scopes = prepend(state.scopes, state.variables);
state.soyState.push("var-def");
}
if (state.tag.match(/^@param\??/)) {
if (state.tag.match(/^@(?:param\??|inject)/)) {
state.soyState.push("param-def");
}
return "keyword";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment