mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Ruby. Slim. Supported colon ":" as tag delimiter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user