Skip to content

SamyAB/tree-sitter-gherkin

Repository files navigation

tree-sitter-gherkin

Gherkin grammar for tree-sitter

Reference

TODO

Grammar

To make this tree-sitter grammar complete (for english) we need to add

  • Support for features with a single scenario with single line titles and given when then steps
  • Support for multiline descriptions for features and scenarios
  • Support for features using keyword Example instead of Scenario
  • Support for scenarios with only two steps
  • Support for scenarios with more than three steps
  • Support for multiple scenarios within a single feature
  • Support for And and But keywords for steps
  • Support for * keyword for steps
  • Support ordering enforcement for steps
  • Support for both spaces and tabs as optional indentations indentations
  • Support for Rules
  • Support for Backgrouds
  • Support for '#' comments
  • Support for '@' tags"
  • Support for """ and backtics doc strings as step arguments
  • Support for content types for docs strings
  • Support for data tables as step arguments
  • Support for Scenario Outlines
  • Support for using the keyword Scenario Template instead of Senario Outline

Syntax highlight

To make this tree sitter usable for syntax highlighting, we need to add syntax highlight queries

  • Add syntax highlight queries for keywords
  • Add syntax highlight queries for docstrings
  • Add syntax highlight queries for data tables
  • Add syntax highlight queries for tags
  • Add syntax highlight queries for comments

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published