Skip to content

Commit

Permalink
[soy mode] Remove templates property from state
Browse files Browse the repository at this point in the history
  • Loading branch information
axellew committed Feb 5, 2020
1 parent 8397829 commit 0f94af7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mode/soy/soy.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
startState: function() {
return {
soyState: [],
templates: null,
variables: prepend(null, 'ij'),
scopes: null,
indent: 0,
Expand All @@ -146,7 +145,6 @@
return {
tag: state.tag, // Last seen Soy tag.
soyState: state.soyState.concat([]),
templates: state.templates,
variables: state.variables,
context: state.context,
indent: state.indent, // Indentation of the following line.
Expand Down Expand Up @@ -202,7 +200,6 @@
switch (last(state.soyState)) {
case "templ-def":
if (match = stream.match(/^\.?([\w]+(?!\.[\w]+)*)/)) {
state.templates = prepend(state.templates, match[1]);
state.soyState.pop();
return "def";
}
Expand Down

0 comments on commit 0f94af7

Please sign in to comment.