class Rouge::Lexers::Groovy
Public Class Methods
analyze_text(text)
click to toggle source
# File lib/rouge/lexers/groovy.rb, line 13 def self.analyze_text(text) return 1 if text.shebang?(/groovy/) end
constants()
click to toggle source
# File lib/rouge/lexers/groovy.rb, line 38 def self.constants @constants ||= Set.new %w(true false null) end
declarations()
click to toggle source
# File lib/rouge/lexers/groovy.rb, line 24 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
keywords()
click to toggle source
# File lib/rouge/lexers/groovy.rb, line 17 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 32 def self.types @types ||= Set.new %w( def boolean byte char double float int long short void ) end