diff options
author | Georg Brandl <g.brandl@fz-juelich.de> | 2019-12-09 12:32:47 +0100 |
---|---|---|
committer | Georg Brandl <g.brandl@fz-juelich.de> | 2019-12-09 12:32:47 +0100 |
commit | 09ef9a63ff67790f14bf3201b7e548bffe602723 (patch) | |
tree | 1843a7990b980ddbf92c3019ad2a191f4790b3d9 /pygments/lexers/php.py | |
parent | da310ba1bf547202dcc8224a9f2ce102aa926abf (diff) | |
download | pygments-git-09ef9a63ff67790f14bf3201b7e548bffe602723.tar.gz |
tests: remove special skip cases for random_input test case
Diffstat (limited to 'pygments/lexers/php.py')
-rw-r--r-- | pygments/lexers/php.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/php.py b/pygments/lexers/php.py index bd4a2376..680f0573 100644 --- a/pygments/lexers/php.py +++ b/pygments/lexers/php.py @@ -50,13 +50,14 @@ class ZephirLexer(RegexLexer): include('commentsandwhitespace'), (r'/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/' r'([gim]+\b|\B)', String.Regex, '#pop'), + (r'/', Operator, '#pop'), default('#pop') ], 'badregex': [ (r'\n', Text, '#pop') ], 'root': [ - (r'^(?=\s|/|<!--)', Text, 'slashstartsregex'), + (r'^(?=\s|/)', Text, 'slashstartsregex'), include('commentsandwhitespace'), (r'\+\+|--|~|&&|\?|:|\|\||\\(?=\n)|' r'(<<|>>>?|==?|!=?|->|[-<>+*%&|^/])=?', Operator, 'slashstartsregex'), |