void () { doTest("a1", """ Element(ROOT) Element(LETTER) PsiElement(LETTER)('a') PsiErrorElement:something lost <empty list> Element(DIGIT) PsiElement(DIGIT)('1') """, builder -> { PsiBuilder.Marker letter = builder.mark(); builder.advanceLexer(); letter.done(LETTER); PsiBuilder.Marker digit = builder.mark(); builder.advanceLexer(); digit.done(DIGIT); digit.precede().errorBefore("something lost", digit); } ); }