Skip to content

Commit

Permalink
Define capture markers in regex, so we don't overrun the regex
Browse files Browse the repository at this point in the history
Fixes #24
  • Loading branch information
samcv committed Dec 19, 2016
1 parent 20dbfcb commit ddd41f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions grammars/perl6fe.regexp.cson
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit ddd41f4

Please sign in to comment.