lib/rouge/lexers/swift.rb in rouge-3.5.1 vs lib/rouge/lexers/swift.rb in rouge-3.6.0

- old
+ new

@@ -95,17 +95,17 @@ token Keyword::Declaration else groups Keyword::Declaration, Error, Keyword::Declaration end end - + rule %r/#available\([^)]+\)/, Keyword::Declaration - + rule %r/(#(?:selector|keyPath)\()([^)]+?(?:[(].*?[)])?)(\))/ do groups Keyword::Declaration, Name::Function, Keyword::Declaration end - + rule %r/#(line|file|column|function|dsohandle)/, Keyword::Declaration rule %r/(let|var)\b(\s*)(#{id})/ do groups Keyword, Text, Name::Variable end @@ -120,10 +120,10 @@ token Keyword::Type else token Name::Function end end - + rule %r/as[?!]?(?=\s)/, Keyword rule %r/try[!]?(?=\s)/, Keyword rule %r/(#?(?!default)(?![[:upper:]])#{id})(\s*)(:)/ do groups Name::Variable, Text, Punctuation