Parent

Class/Module Index [+]

Quicksearch

Rouge::Lexers::OCaml

Public Class Methods

keyopts() click to toggle source
# File lib/rouge/lexers/ocaml.rb, line 19
def self.keyopts
  @keyopts ||= Set.new %(
    != # & && ( ) * \+ , - -. -> . .. : :: := :> ; ;; < <- =
    > >] >} ? ?? [ [< [> [| ] _ ` { {< | |] } ~
  )
end
keywords() click to toggle source
# File lib/rouge/lexers/ocaml.rb, line 9
def self.keywords
  @keywords ||= Set.new %(
    as assert begin class constraint do done downto else end
    exception external false for fun function functor if in include
    inherit initializer lazy let match method module mutable new
    object of open private raise rec sig struct then to true try
    type value val virtual when while with
  )
end
primitives() click to toggle source
# File lib/rouge/lexers/ocaml.rb, line 30
def self.primitives
  @primitives ||= Set.new %(unit int float bool string char list array)
end
word_operators() click to toggle source
# File lib/rouge/lexers/ocaml.rb, line 26
def self.word_operators
  @word_operators ||= Set.new %(and asr land lor lsl lxor mod or)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.