lib/rouge/lexers/pony.rb in rouge-3.13.0 vs lib/rouge/lexers/pony.rb in rouge-3.14.0
- old
+ new
@@ -44,10 +44,10 @@
end
state :root do
mixin :whitespace
rule %r/"""/, Str::Doc, :docstring
- rule %r{//(.*?)\n}, Comment::Single
+ rule %r{//.*}, Comment::Single
rule %r{/(\\\n)?[*](.|\n)*?[*](\\\n)?/}, Comment::Multiline
rule %r/"/, Str, :string
rule %r([~!%^&*+=\|?:<>/-]), Operator
rule %r/(true|false|NULL)\b/, Name::Constant
rule %r{(?:[A-Z_][a-zA-Z0-9_]*)}, Name::Class