class Rouge::Lexers::ReScript

Public Class Methods

keywords() click to toggle source
# File lib/rouge/lexers/rescript.rb, line 14
def self.keywords
  @keywords ||= Set.new(%w(
    open let rec and as exception assert lazy if else
    for in to downto while switch when external type private
    mutable constraint include module of with try import export
  ))
end
types() click to toggle source
# File lib/rouge/lexers/rescript.rb, line 22
def self.types
  @types ||= Set.new(%w(
    bool int float char string
    unit list array option ref exn format
  ))
end
word_operators() click to toggle source
# File lib/rouge/lexers/rescript.rb, line 29
def self.word_operators
  @word_operators ||= Set.new(%w(mod land lor lxor lsl lsr asr or))
end