lib/rouge/lexers/php.rb in rouge-4.1.0 vs lib/rouge/lexers/php.rb in rouge-4.1.1

- old
+ new

@@ -64,11 +64,11 @@ end end id = /[\p{L}_][\p{L}\p{N}_]*/ ns = /(?:#{id}\\)+/ - id_with_ns = /(?:#{ns})?#{id}/ + id_with_ns = /\\?(?:#{ns})?#{id}/ start do case @start_inline when true push :php @@ -271,10 +271,10 @@ end state :in_catch do rule %r/\(/, Punctuation rule %r/\|/, Operator - rule id, Name::Class + rule id_with_ns, Name::Class mixin :escape mixin :whitespace mixin :return end