Skip to content

Commit

Permalink
[JavaScript] color get, set and of as keywords, issue #665.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed May 22, 2023
1 parent 9b63512 commit 669ff5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EditLexers/stlJavaScript.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
static KEYWORDLIST Keywords_JS = {{
//++Autogenerated -- start of section automatically generated
"Infinity NaN arguments async await break case catch class const continue debugger default delete do else export extends "
"false finally for function globalThis if import in instanceof let new null return static super switch "
"false finally for function get globalThis if import in instanceof let new null of return set static super switch "
"this throw true try typeof undefined var void while with yield "

, // 1 future reserved words
Expand Down
2 changes: 1 addition & 1 deletion src/EditLexers/stlPHP.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static KEYWORDLIST Keywords_PHP = {{

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

, // 11 phpdoc
Expand Down
2 changes: 2 additions & 0 deletions tools/lang/JavaScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// 2024 https://tc39.es/ecma262/

//! keywords
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#keywords
async await
break
case catch class const continue
Expand All @@ -30,6 +31,7 @@ Infinity
NaN
undefined
arguments
get set of

//! future reserved words
enum implements interface package private protected public
Expand Down

0 comments on commit 669ff5c

Please sign in to comment.