@Test public void comment_exclamation_mark3() throws Exception { setUp(Charsets.ISO_8859_1); highlight("abc: abc...abc\n ! blabla"); assertHighlighting(2, 1, 8, COMMENT); }
private void highlight(SyntaxToken token, TypeOfText type) { highlighting.highlight(token.line(), token.column(), token.endLine(), token.endColumn(), type); }
SyntaxHighlighterVisitor extends SubscriptionVisitor { private void highlight(SyntaxToken token, TypeOfText type) { highlighting.highlight(token.line(), token.column(), token.endLine(), token.endColumn(), type); } }
SyntaxHighlighterVisitor extends SubscriptionVisitor { private void highlight(SyntaxToken token, TypeOfText type) { highlighting.highlight(token.line(), token.column(), token.endLine(), token.endColumn(), type); } SyntaxHighlighterVisitor(SensorContext sensorContext); }
SyntaxHighlighterVisitor extends SubscriptionVisitor { private void highlight(SyntaxToken token, TypeOfText type) { highlighting.highlight(token.line(), token.column(), token.endLine(), token.endColumn(), type); } SyntaxHighlighterVisitor(SensorContext sensorContext); @Override List<Tree.Kind> nodesToVisit(); @Override void visitFile(Tree tree); @Override void leaveFile(Tree scriptTree); @Override void visitNode(Tree tree); }
SyntaxHighlighterVisitor extends SubscriptionVisitor { private void highlight(SyntaxToken token, TypeOfText type) { highlighting.highlight(token.line(), token.column(), token.endLine(), token.endColumn(), type); } SyntaxHighlighterVisitor(SensorContext sensorContext); @Override List<Tree.Kind> nodesToVisit(); @Override void visitFile(Tree tree); @Override void leaveFile(Tree scriptTree); @Override void visitNode(Tree tree);  }