Class: CodeRay::Scanners::Erlang

Inherits:
Scanner
  • Object
show all
Defined in:
lib/coderay/scanners/erlang.rb

Constant Summary collapse

KEYWORDS =
[
'after', 'begin', 'case', 'catch', 'cond', 'end', 'fun', 'if',
'let', 'of', 'query', 'receive', 'try', 'when'
]
OPERATORS =
[
'and', 'andalso', 'band', 'bnot', 'bor', 'bsl', 'bsr', 'bxor',
'div', 'not', 'or', 'orelse', 'rem', 'xor', '->', '+', '-', '*',
'/', '<', '>', '=', '==', '/=', '=:=', '=/=', '=<', '>=', '++',
'--', '<-', '!'
]
IDENT_KIND =
WordList.new(:ident).
add(KEYWORDS, :keyword).
add(OPERATORS, :operator)