Glimmer::Highlight::ShellLexer
Inherits Glimmer::Highlight::SimpleRegexLexer < Glimmer::Highlight::Lexer < Reference < Object
ShellLexer provides syntax highlighting for Shell/Bash scripts.
Constants
BUILTINS = ["alias", "bind", "builtin", "caller", "command", "compgen", "complete", "compopt", "declare", "typeset", "enable", "help", "let", "local", "logout", "mapfile", "readarray", "read", "source", "type", "typeset", "ulimit", "unalias"] of ::String
KEYWORDS = ["if", "then", "else", "elif", "fi", "case", "esac", "for", "while", "do", "done", "until", "function", "return", "exit", "export", "local", "readonly", "declare", "typeset", "set", "unset", "eval", "exec", "source", "trap", "wait", "bg", "fg", "jobs", "kill", "test", "echo", "printf", "cd", "pwd", "pushd", "popd", "dirs", "mkdir", "rmdir", "rm", "cp", "mv", "ln", "chmod", "chown", "chgrp", "touch", "cat", "less", "more", "head", "tail", "grep", "sed", "awk", "sort", "uniq", "wc", "find", "tar", "gzip", "gunzip", "bzip2", "bunzip2", "xz", "unxz", "zip", "unzip", "ssh", "scp", "curl", "wget", "git", "sudo", "su", "true", "false"] of ::String
Constructors
new
Source