class Rouge::Lexers::Groovy
Public Class Methods
Source
# File lib/rouge/lexers/groovy.rb, line 37 def self.constants @constants ||= Set.new %w(true false null) end
Source
# File lib/rouge/lexers/groovy.rb, line 23 def self.declarations @declarations ||= Set.new %w( abstract const extends final implements native private protected public static strictfp super synchronized throws transient volatile ) end
Source
# File lib/rouge/lexers/groovy.rb, line 12 def self.detect?(text) return true if text.shebang?(/groovy/) end
Source
# File lib/rouge/lexers/groovy.rb, line 16 def self.keywords @keywords ||= Set.new %w( assert break case catch continue default do else finally for if goto instanceof new return switch this throw try while in as ) end
Source
# File lib/rouge/lexers/groovy.rb, line 31 def self.types @types ||= Set.new %w( def var boolean byte char double float int long short void ) end