klorenz / atom-regex-railroad-diagrams

display regex as railroad diagram, if cursor moves to it
MIT License
250 stars 31 forks source link

feature request: cson grammar (oniguruma) #17

Closed MasseGuillaume closed 8 years ago

MasseGuillaume commented 10 years ago

I'm fixing the scala grammar, similar to #16 a regex is enclosed by strings.

'match': "(@(?:tparam|throws))\\s+(\\S)(\\s+)" vs 'match': /(@(?:tparam|throws))\\s+(\\S)(\\s+)/

it's based on oniguruma (http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt)

klorenz commented 10 years ago

Hi Guillaume,

railroad diagram package relies on scope names, which are produced by grammars, so there should be some grammar for highlighting cson grammars. You might be interested in another package I have written, which lets you produce cson grammars from coffee-script, where you have the diagrams:

https://www.npmjs.org/package/atom-syntax-tools

Best Regards, Kiwi