SASS/SCSS: make functionBody lazy

This commit is contained in:
Alexander Zolotov
2013-12-25 20:53:37 +04:00
parent 1261c24c69
commit 9dd6f07a24
@@ -218,11 +218,19 @@ public abstract class AbstractIndentParser implements PsiParser {
errorMarker.error(message);
}
protected void errorUntilEol(String message) {
protected void errorUntilEol(@NotNull String message) {
PsiBuilder.Marker errorMarker = mark();
advanceUntilEol();
errorMarker.error(message);
}
protected void errorUntilEof(@NotNull String message) {
PsiBuilder.Marker errorMarker = mark();
while (!eof()) {
advance();
}
errorMarker.error(message);
}
protected void expectEolOrEof() {
if (!isNewLine() && !eof()) {