Commit 26ee361
Fix the broken Gherkin spec on main, and refactor STEP_REGEX (#2226)
* fix the spec for gherkin to specify that the whitespace is not part of the keyword
* eliminate Gherkin.step_regex in favour of a pre-computed one from the Rake task
* uniq gherkin keywords
---------
Co-authored-by: jneen <jneen@jneen.net>1 parent f8609f2 commit 26ee361
File tree
4 files changed
+40
-32
lines changed- lib/rouge/lexers
- gherkin
- spec/lexers
- tasks/builtins
4 files changed
+40
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 24 | | |
41 | 25 | | |
42 | 26 | | |
| |||
74 | 58 | | |
75 | 59 | | |
76 | 60 | | |
77 | | - | |
| 61 | + | |
78 | 62 | | |
79 | | - | |
| 63 | + | |
| 64 | + | |
80 | 65 | | |
81 | 66 | | |
82 | 67 | | |
| |||
0 commit comments