lib/rouge/lexers/swift.rb in rouge-3.10.0 vs lib/rouge/lexers/swift.rb in rouge-3.11.0
- old
+ new
@@ -78,10 +78,10 @@
rule %r/0o?[0-7]+(?:_[0-7]+)*/, Num::Oct
rule %r/0x[0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*((\.[0-9A-F]+(?:_[0-9A-F]+)*)?p[+-]?\d+)?/, Num::Hex
rule %r/0b[01]+(?:_[01]+)*/, Num::Bin
rule %r{[\d]+(?:_\d+)*}, Num::Integer
- rule %r/@#{id}(\([^)]+\))?/, Keyword::Declaration
+ rule %r/@#{id}/, Keyword::Declaration
rule %r/(private|internal)(\([ ]*)(\w+)([ ]*\))/ do |m|
if m[3] == 'set'
token Keyword::Declaration
else