mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-8750 zen coding: do not expand single text node
This commit is contained in:
@@ -151,7 +151,10 @@ public class ZenCodingTemplate implements CustomLiveTemplate {
|
||||
}
|
||||
MyParser parser = new MyParser(tokens, callback, generator);
|
||||
ZenCodingNode node = parser.parse();
|
||||
return parser.myIndex == tokens.size() ? node : null;
|
||||
if (parser.myIndex != tokens.size() || node instanceof TextNode) {
|
||||
return null;
|
||||
}
|
||||
return node;
|
||||
}
|
||||
|
||||
private static boolean validate(@NotNull List<ZenCodingToken> tokens, @NotNull ZenCodingGenerator generator) {
|
||||
|
||||
Reference in New Issue
Block a user