It looks like snippets on multiple lines are not working when file begins or contains "<%" pattern.
This pattern is widely user in some template languages like Mako (e.g. <%inherit file="/index.html" />).
Scenario:
1. New file with HTML type. Put:
- Code: Select all
<%
Test1
Test2
Test3
Test4
2. Select text:
- Code: Select all
Test1
Test2
Test3
Test4
and press Ctrl+Shift+L
3. Press 'p' and then press Tab key.
Instead of:
- Code: Select all
<%
<p>Test1</p>
<p>Test2</p>
<p>Test3</p>
<p>Test4</p>
Sublime inserts the following code:
- Code: Select all
<%
p<tab>
p<tab>
p<tab>
p<tab>
If I've remove '%' sign it works fine.
It looks like a problem with HTML lexer (wrong scope is used)?
Regards,
Artur