emacs-typescript / typescript.el

TypeScript-support for Emacs
GNU General Public License v3.0
266 stars 80 forks source link

typescript new keyword 'override' highlight #149

Closed psychehao closed 2 years ago

psychehao commented 3 years ago

need typescript new keyword 'override' highlight

psychehao commented 3 years ago

(defconst typescript--keyword-re (typescript--regexp-opt-symbol '("abstract" "any" "as" "async" "await" "boolean" "bigint" "break" "case" "catch" "class" "const" "constructor" "continue" "declare" "default" "delete" "do" "else" "enum" "export" "extends" "extern" "false" "finally" "for" "function" "from" "get" "goto" "if" "implements" "import" "in" "instanceof" "interface" "keyof" "let" "module" "namespace" "never" "new" "null" "number" "object" "of" "private" "protected" "public" "readonly" "return" "set" "static" "string" "super" "switch" "this" "throw" "true" "try" "type" "typeof" "unknown" "var" "void" "while" "override")) ; <= override keyword "Regexp matching any typescript keyword.")

josteink commented 3 years ago

Sounds like you've almost got a PR landed for this ;)