diff --git a/highlight2.py b/highlight2.py index 4cdb1a6..aa70d18 100644 --- a/highlight2.py +++ b/highlight2.py @@ -46,4 +46,4 @@ class Highlighter: self.tokens[token.y].append(token) def update(self, lines): - \ No newline at end of file + pass \ No newline at end of file diff --git a/lex2_perl.py b/lex2_perl.py index 1a2e2b3..c1052fc 100755 --- a/lex2_perl.py +++ b/lex2_perl.py @@ -212,7 +212,7 @@ class PerlGrammar(Grammar): # match regexes RegionRule( name=r'match', - start=r'(?:(?<==~)|(?<=!~)|(?<=\()) *(?P/)', + start=r'(?:(?<==~)|(?<=!~)|(?<=\()|(?<=split)) *(?P/)', grammar=StringGrammar(), end=r'/[a-z]*', ),