@Test public void multiline_comment_on_three_lines() throws Exception { highlight("<?php "); check(1, 7, null); check(1, 8, TypeOfText.COMMENT); check(1, 23, TypeOfText.COMMENT); check(2, 0, TypeOfText.COMMENT); check(2, 5, TypeOfText.COMMENT); check(2, 5, TypeOfText.COMMENT); check(3, 0, TypeOfText.COMMENT); check(3, 17, TypeOfText.COMMENT); check(3, 18, null); }
public static void highlight(Tree tree, NewHighlighting highlighting) { SyntaxHighlighterVisitor visitor = new SyntaxHighlighterVisitor(highlighting); visitor.scan(tree); }
SyntaxHighlighterVisitor extends PHPVisitorCheck { public static void highlight(Tree tree, NewHighlighting highlighting) { SyntaxHighlighterVisitor visitor = new SyntaxHighlighterVisitor(highlighting); visitor.scan(tree); } }
SyntaxHighlighterVisitor extends PHPVisitorCheck { public static void highlight(Tree tree, NewHighlighting highlighting) { SyntaxHighlighterVisitor visitor = new SyntaxHighlighterVisitor(highlighting); visitor.scan(tree); } private  SyntaxHighlighterVisitor(NewHighlighting highlighting); }
SyntaxHighlighterVisitor extends PHPVisitorCheck { public static void highlight(Tree tree, NewHighlighting highlighting) { SyntaxHighlighterVisitor visitor = new SyntaxHighlighterVisitor(highlighting); visitor.scan(tree); } private  SyntaxHighlighterVisitor(NewHighlighting highlighting); static void highlight(Tree tree, NewHighlighting highlighting); @Override void visitToken(SyntaxToken token); @Override void visitTrivia(SyntaxTrivia trivia); @Override void visitExpandableStringLiteral(ExpandableStringLiteralTree tree); @Override void visitLiteral(LiteralTree tree); @Override void visitExpandableStringCharacters(ExpandableStringCharactersTree tree); }
SyntaxHighlighterVisitor extends PHPVisitorCheck { public static void highlight(Tree tree, NewHighlighting highlighting) { SyntaxHighlighterVisitor visitor = new SyntaxHighlighterVisitor(highlighting); visitor.scan(tree); } private  SyntaxHighlighterVisitor(NewHighlighting highlighting); static void highlight(Tree tree, NewHighlighting highlighting); @Override void visitToken(SyntaxToken token); @Override void visitTrivia(SyntaxTrivia trivia); @Override void visitExpandableStringLiteral(ExpandableStringLiteralTree tree); @Override void visitLiteral(LiteralTree tree); @Override void visitExpandableStringCharacters(ExpandableStringCharactersTree tree);  }