@Test public void numeric_literal() throws Exception { highlight("x + 123 + y;"); assertHighlighting(1, 3, null); assertHighlighting(4, 6, CONSTANT); assertHighlighting(7, 7, 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();   }