@Test public void scenario_outline_prefix() throws Exception { highlight("Feature: my feature...\nScenario Outline: my scenario...\nExamples:"); assertHighlighting(2, 0, 16, KEYWORD); }
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);  }