Permalink
Browse files

* MyBBCodeLexer looks even better now

  • Loading branch information...
1 parent c8a5105 commit 54f1a9203c43bd489d94a5bb2fba58f19cf38144 ojii committed Dec 24, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 mypygments.py
View
@@ -17,15 +17,15 @@ class MyBBCodeLexer(RegexLexer):
(r'[^[\]]+', Text),
(r'(\[)(/?[^\]\n\r=]+)(\])',
bygroups(Keyword, Keyword.Pseudo, Keyword)),
- (r'(\[)([^\]\n\r=]+)(=)("[^\]\n\r="]+"|[^\]\n\r= ]+\])',
+ (r'(\[)([^\]\n\r=]+)(=)("[^\]\n\r="]+"|[^\]\n\r= ]+)(\])',
bygroups(Keyword, Keyword.Pseudo, Operator, String, Keyword)),
(r'(\[)([^\]\n\r= ]+)( )',
bygroups(Keyword, Keyword.Pseudo, Text),
'multiarg'),
],
'multiarg' : [
(r'([^\]\n\r= ]+)(=)("[^\]\n\r="]+"|[^\]\n\r= ]+)',
- bygroups(Keyword.Pseudo, Operator, String)),
+ bygroups(Name.Attribute, Operator, String)),
(' ', Text),
(r'\]', Keyword, '#pop'),
],

0 comments on commit 54f1a92

Please sign in to comment.