class

Glimmer::Highlight::JavaScriptLexer

Inherits Glimmer::Highlight::SimpleRegexLexer < Glimmer::Highlight::Lexer < Reference < Object

JavaScriptLexer provides syntax highlighting for JavaScript/TypeScript code.

Constants

KEYWORD_CONSTANTS = ["true", "false", "null", "undefined", "NaN", "Infinity"] of ::String
KEYWORDS = ["break", "case", "catch", "class", "const", "continue", "debugger", "default", "delete", "do", "else", "export", "extends", "finally", "for", "function", "if", "import", "in", "instanceof", "let", "new", "return", "super", "switch", "this", "throw", "try", "typeof", "var", "void", "while", "with", "yield", "async", "await", "static", "get", "set", "of"] of ::String

Constructors