tpope / vim-cucumber

Vim Cucumber runtime files
http://www.vim.org/scripts/script.php?script_id=2973
324 stars 63 forks source link

Fix syntax highlighting for matchers using parentheses #32

Closed asymmetric closed 9 years ago

asymmetric commented 9 years ago

Hi,

As discussed in this PR, the correct syntax for Gherkin matchers is

Given(/This and that/)

And not

Given /This and that/

because the latter is ambiguous and causes ruby to issue the warning ambiguous first argument; put parentheses or even spaces. (note: funny that the GitHub syntax highlight makes the same mistake)

It would be great if the syntax file in this plugin could highlight the correct case (and possibly, stop highlighting the wrong one!)

Thanks for all your great plugins :heart:

tpope commented 9 years ago

These runtime files are concerned with .feature files only.