Class: Rouge::Lexers::ShellLexer
- Inherits:
-
RegexLexer
- Object
- Rouge::Lexer
- RegexLexer
- Rouge::Lexers::ShellLexer
- Defined in:
- lib/rouge/lexers/shell.rb
Constant Summary collapse
- KEYWORDS =
%w( if fi else while do done for then return function select continue until esac elif in ).join('|')
- BUILTINS =
%w( alias bg bind break builtin caller cd command compgen complete declare dirs disown echo enable eval exec exit export false fc fg getopts hash help history jobs kill let local logout popd printf pushd pwd read readonly set shift shopt source suspend test time times trap true type typeset ulimit umask unalias unset wait ).join('|')
Method Summary
Methods inherited from RegexLexer
[], #get_state, get_state, #initialize, state, states, #step, #stream_tokens, #stream_with_state
Methods inherited from Rouge::Lexer
aliases, #debug, default_options, extension_registry, extensions, find, #get_tokens, #initialize, lex, #lex, make, new, #option, #options, register, #stream_tokens, tag
Constructor Details
This class inherits a constructor from Rouge::RegexLexer