class Rouge::Lexers::Awk
Public Class Methods
builtins()
click to toggle source
# File lib/rouge/lexers/awk.rb, line 41 def self.builtins @builtins ||= %w( exp log sqrt sin cos atan2 length rand srand int substr index match split sub gsub sprintf system tolower toupper ) end
constants()
click to toggle source
# File lib/rouge/lexers/awk.rb, line 34 def self.constants @constants ||= Set.new %w( CONVFMT FS NF NR FNR FILENAME RS OFS ORS OFMT SUBSEP ARGC ARGV ENVIRON ) end
declarations()
click to toggle source
# File lib/rouge/lexers/awk.rb, line 26 def self.declarations @declarations ||= Set.new %w(function) end
detect?(text)
click to toggle source
# File lib/rouge/lexers/awk.rb, line 13 def self.detect?(text) return true if text.shebang?('awk') end
keywords()
click to toggle source
# File lib/rouge/lexers/awk.rb, line 19 def self.keywords @keywords ||= Set.new %w( if else while for do break continue return next nextfile delete exit print printf getline ) end
reserved()
click to toggle source
# File lib/rouge/lexers/awk.rb, line 30 def self.reserved @reserved ||= Set.new %w(BEGIN END) end