@Test public void keyword() throws Exception { highlight("fun foo() { if(x) y; }"); assertHighlighting(0, 2, KEYWORD); assertHighlighting(3, 11, null); assertHighlighting(12, 13, KEYWORD); assertHighlighting(14, 22, null); }
private void highlight(InputFileContext ctx, TextRange range, TypeOfText typeOfText) { newHighlighting.highlight(ctx.textRange(range), typeOfText); }
SyntaxHighlighter extends TreeVisitor<InputFileContext> { private void highlight(InputFileContext ctx, TextRange range, TypeOfText typeOfText) { newHighlighting.highlight(ctx.textRange(range), typeOfText); } }
SyntaxHighlighter extends TreeVisitor<InputFileContext> { private void highlight(InputFileContext ctx, TextRange range, TypeOfText typeOfText) { newHighlighting.highlight(ctx.textRange(range), typeOfText); } SyntaxHighlighter(); }
SyntaxHighlighter extends TreeVisitor<InputFileContext> { private void highlight(InputFileContext ctx, TextRange range, TypeOfText typeOfText) { newHighlighting.highlight(ctx.textRange(range), typeOfText); } SyntaxHighlighter();  }
SyntaxHighlighter extends TreeVisitor<InputFileContext> { private void highlight(InputFileContext ctx, TextRange range, TypeOfText typeOfText) { newHighlighting.highlight(ctx.textRange(range), typeOfText); } SyntaxHighlighter();   }