zargony / atom-language-rust

Rust language support in Atom - LOOKING FOR MAINTAINER, see #144
MIT License
116 stars 33 forks source link

Use explicit count modifiers #109

Closed pchaigno closed 7 years ago

pchaigno commented 7 years ago

The construction {,n} in regular expressions is only supported by Oniguruma (which is used by TextMate). This TextMate bundle is used to highlight Rust code on github.com. However, github.com is using a PCRE-based engine for regexes.

This pull request fixes that by using explicit count modifiers.

pchaigno commented 7 years ago

The Travis build failure looks unrelated.

pchaigno commented 7 years ago

@KalitaAlexey Did you get a chance to look into this?

KalitaAlexey commented 7 years ago

I don't know why it fails. Anyway I find you code correct.