regexp syntax highlighting broken by `\]/` in a character class #101

Closed
michaelficarra opened this Issue Jun 22, 2012 · 2 comments

Projects

None yet

2 participants

@michaelficarra

Everything to the right of the assignment in the following expression should be treated as a regexp. It seems to be confused by an escaped right bracket and a slash in a character class.

re = /[\]/qwerty]/

Pygments seems to be handling it fine.

@michaelficarra

Looks like it doesn't need to be a ], just any escaped character within a character class, followed by a /.

@kchmck kchmck added a commit that closed this issue Sep 8, 2013
@kchmck Use a region for regex character classes
This should fix #101 and also fixes heregexes breaking with [///]
7130a14
@kchmck kchmck closed this in 7130a14 Sep 8, 2013
@kchmck
Owner

This should finally be fixed w/ 7130a14

@lcharlick lcharlick added a commit to lcharlick/vim-coffee-script that referenced this issue Feb 21, 2014
@kchmck Use a region for regex character classes
This should fix #101 and also fixes heregexes breaking with [///]
88a9c5c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment