class Rouge::Lexers::Gherkin
Constants
- KEYWORDS
- STEP_REGEX
-
- jneen
-
this giant regex is staying, because
Gherkinstep
keywords are so arbitrary that there is not a good simple pattern to match all of them and check post-hoc.
Public Class Methods
Source
# File lib/rouge/lexers/gherkin.rb, line 15 def self.detect?(text) return true if text.shebang? 'cucumber' end