HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/share/source-highlight/feature.lang
# Cucumber / feature file lang definition file
# Probably can remove some definitions, since FFs are so simple

include "number.lang"

string delim "\"" "\"" escape "\\"
string delim "'" "'"  escape "\\"
string delim "<" ">"

keyword ="Feature|Background|Scenario|Scenario Outline|Examples"

# type = '(\$[#]?|@@|@)([[:word:]]+|\'|\"|/)'

include "script_comment.lang"

# Define cucumber tables
table = '^\s*\|([^|]*)\|([^|]*)\|\s*$'
 
# tags
cuketag = '(?<!\S)(@[[:word:]]+)(?!\S)'

# The Gherken statements
given = '^\s*(Given)'
when = '^\s*(When)'
then = '^\s*(Then)'
and_but = '^\s*(And|But)'