lib/rouge/lexers/php.rb in rouge-2.0.2 vs lib/rouge/lexers/php.rb in rouge-2.0.3
- old
+ new
@@ -88,10 +88,10 @@
rule /(->|::)(\s*)([a-zA-Z_][a-zA-Z0-9_]*)/ do
groups Operator, Text, Name::Attribute
end
rule /[~!%^&*+=\|:.<>\/?@-]+/, Operator
- rule /[\[\]{}();,]+/, Punctuation
+ rule /[\[\]{}();,]/, Punctuation
rule /class\b/, Keyword, :classname
# anonymous functions
rule /(function)(\s*)(?=\()/ do
groups Keyword, Text
end