Ruby. Slim. Supported colon ":" as tag delimiter

This commit is contained in:
Andrey Vokin
2017-03-20 18:33:36 +01:00
parent d243d61455
commit cb4c37e581
@@ -113,6 +113,10 @@ public abstract class IndentationParser implements PsiParser {
// sometimes we do not have EOL between indents
eolSeen = true;
}
if (isCustomTagDelimiter(type)) {
builder.advanceLexer();
eolSeen = true;
}
if (eolSeen) {
if (startLineMarker != null) {
startLineMarker.rollbackTo();
@@ -165,6 +169,10 @@ public abstract class IndentationParser implements PsiParser {
return builder.getTreeBuilt();
}
protected boolean isCustomTagDelimiter(IElementType type) {
return false;
}
protected void closeBlock(final @NotNull PsiBuilder builder,
final @NotNull PsiBuilder.Marker marker,
final @Nullable IElementType startTokenType)