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

Add support for the Gherkin language #198

Open
danielpacak opened this issue Jul 20, 2016 · 1 comment
Open

Add support for the Gherkin language #198

danielpacak opened this issue Jul 20, 2016 · 1 comment

Comments

@danielpacak
Copy link

https://github.com/cucumber/cucumber/wiki/Gherkin

@ghost
Copy link

ghost commented Aug 16, 2016

I think the problem is that writing support for any language xyz is not trivial. korny explained in some document how this is and should be done:

https://github.com/rubychan/coderay/wiki/Scanner-Requests

You can even find stackoverflow questions :D

http://stackoverflow.com/questions/19158484/how-can-i-extend-coderay-to-highlight-a-new-language

I think your best bet is to have a look at the example .rb file that is linked on the wiki - this may be the best way to fiddle around with things. If you have some working basics and have questions, I guess you may perhaps ask korny at that point; then the wiki may also be improved.

I personally think that this is actually quite advanced - although I am not a newbie in regards to ruby, writing a scanner for a language would probably take me some days simply because I have not fully understood the process either - only the bare skeleton such as lexing and scanning ... and I mix these up all the time anyway. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants