lib/rouge/lexers/java.rb in rouge-1.6.2 vs lib/rouge/lexers/java.rb in rouge-1.7.0
- old
+ new
@@ -40,10 +40,10 @@
rule %r(//.*?$), Comment::Single
rule %r(/\*.*?\*/)m, Comment::Multiline
rule /@#{id}/, Name::Decorator
rule /(?:#{keywords.join('|')})\b/, Keyword
rule /(?:#{declarations.join('|')})\b/, Keyword::Declaration
- rule /(?:#{types.join('|')})/, Keyword::Type
+ rule /(?:#{types.join('|')})\b/, Keyword::Type
rule /package\b/, Keyword::Namespace
rule /(?:true|false|null)\b/, Keyword::Constant
rule /(?:class|interface)\b/, Keyword::Declaration, :class
rule /import\b/, Keyword::Namespace, :import
rule /"(\\\\|\\"|[^"])*"/, Str