class Rouge::Lexers::Groovy
Public Class Methods
constants()
click to toggle source
# File lib/rouge/lexers/groovy.rb, line 37 def self.constants @constants ||= Set.new %w(true false null) end
declarations()
click to toggle source
# File lib/rouge/lexers/groovy.rb, line 23 def self.declarations @declarations ||= Set.new %w( abstract const enum extends final implements native private protected public static strictfp super synchronized throws transient volatile ) end
detect?(text)
click to toggle source
# File lib/rouge/lexers/groovy.rb, line 12 def self.detect?(text) return true if text.shebang?(/groovy/) end
keywords()
click to toggle 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
types()
click to toggle source
# File lib/rouge/lexers/groovy.rb, line 31 def self.types @types ||= Set.new %w( def boolean byte char double float int long short void ) end