Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syntax highlighting for matchers using parentheses #32

Closed
asymmetric opened this issue Dec 25, 2014 · 1 comment
Closed

Fix syntax highlighting for matchers using parentheses #32

asymmetric opened this issue Dec 25, 2014 · 1 comment

Comments

@asymmetric
Copy link

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 ❤️

@tpope
Copy link
Owner

tpope commented Dec 25, 2014

These runtime files are concerned with .feature files only.

@tpope tpope closed this as completed Dec 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants