textmate / d.tmbundle

TextMate support for D
13 stars 8 forks source link

Explicit count modifiers for regex #1

Closed pchaigno closed 9 years ago

pchaigno commented 9 years ago

The construction {,2} in regular expressions is only supported by Onigurma (which is used by TextMate). This TextMate bundle is used to highlight D code on GitHub. However, GitHub is using a PCRE-based engine for regexes and thus, the following code gets incorrectly highlighted.

const MAPI_LOGON_UI = \00;

This pull request fixes that by using an explicit count modifier in the regex.

infininight commented 9 years ago

Merged as a6931961dafe68349ca0c388d225987bcf2ce049, thanks!