lib/rouge/lexers/gherkin.rb in rouge-0.5.3 vs lib/rouge/lexers/gherkin.rb in rouge-0.5.4

- old
+ new

@@ -88,13 +88,18 @@ end mixin :table end state :table do - rule(/^(?=\s*[^\s|])/) { reset_stack } mixin :basic + rule /\n/, Text, :table_bol rule /[|]/, Punctuation rule /[^|\s]+/, Name + end + + state :table_bol do + rule(/(?=\s*[^\s|])/) { reset_stack } + rule(//) { pop! } end state :description do mixin :basic mixin :has_examples