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 a471580 commit 45ed413Copy full SHA for 45ed413
mode/soy/soy.js
@@ -329,7 +329,6 @@
329
330
case "literal":
331
if (stream.match(/^(?=\{\/literal})/)) {
332
- state.indent -= config.indentUnit;
333
state.soyState.pop();
334
return this.token(stream, state);
335
}
mode/soy/test.js
@@ -201,6 +201,14 @@
201
' Old message',
202
'[keyword {/msg}]');
203
204
+ MT('literal-indent',
205
+ '[keyword {template] [def .name][keyword }]',
206
+ ' [keyword {literal}]',
207
+ ' Lerum',
208
+ ' [keyword {/literal}]',
209
+ ' Ipsum',
210
+ '[keyword {/template}]');
211
+
212
MT('special-chars',
213
'[keyword {sp}]',
214
'[keyword {nil}]',
0 commit comments