Gherkin grammar for tree-sitter
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 ofScenario
- 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
andBut
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
Rule
s - Support for
Backgroud
s - 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 Outline
s - Support for using the keyword
Scenario Template
instead ofSenario Outline
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