From ddd41f4010c13b720a497723767e178dd0d0ec8d Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Mon, 19 Dec 2016 11:41:19 -0800 Subject: [PATCH] Define capture markers in regex, so we don't overrun the regex Fixes #24 --- grammars/perl6fe.regexp.cson | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/grammars/perl6fe.regexp.cson b/grammars/perl6fe.regexp.cson index ec5ad0a..8114298 100644 --- a/grammars/perl6fe.regexp.cson +++ b/grammars/perl6fe.regexp.cson @@ -72,6 +72,12 @@ ] 'name': 'meta.interpolation.perl6fe' } + # TODO check for escaping with lookbehind + { + 'match': '<\\(|\\)>' + 'name': 'keyword.operator.capture.marker.regexp.perl6fe' + } + # Property < > { 'begin': '(?!\\\\)<' 'beginCaptures':