Commits

Tim Hatch committed fad6328

Support exactly one close paren in ObjectiveJ types
This fixes a bug that would eat all except one close paren, if this capture
group matched multiple times.
---
pygments/lexers/web.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

  • Participants
  • Parent commits 390a0f4

Comments (0)

Files changed (1)

File pygments/lexers/web.py

             # parameters
             (r'(\(' + _ws + ')'                 # open paren
              r'([^\)]+)'                        # type
-             r'(' + _ws + r'\)' + _ws + r')+'   # close paren
+             r'(' + _ws + r'\)' + _ws + r')'    # close paren
              r'([$a-zA-Z_][a-zA-Z0-9_]+)',      # param name
              bygroups(using(this), Keyword.Type, using(this), Text)),