Skip to content

Commit

Permalink
Update API list for JavaScript to ECMAScript 2018, 9ed.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Jul 3, 2018
1 parent 1df51a7 commit 4f22e0d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 2 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@
* Boost Jam
* Java
* JavaDoc
* [JavaScript](../master/tools/lang/JavaScript.js), up to ECMAScript 2017, 8ed.
* [JavaScript](../master/tools/lang/JavaScript.js), up to ECMAScript 2018, 9ed.
* JSON Document
* [Julia Script](https://julialang.org/)
* LaTeX
* Lisp Script
* Lisp
* Common Lisp
* LLVM IR
* Lua Script
Expand Down Expand Up @@ -131,7 +130,7 @@
* CMake
* C# (class list only)
* Java (class list only)
* [JavaScript](../master/tools/lang/JavaScript.js), up to ECMAScript 2017, 8ed.
* [JavaScript](../master/tools/lang/JavaScript.js), up to ECMAScript 2018, 9ed.
* Inno Setup
* [Julia Script](https://julialang.org/)
* Lua Script
Expand Down
4 changes: 2 additions & 2 deletions src/EditLexers/stlJavaScript.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ static KEYWORDLIST Keywords_JS = {{
// arguments, Function, Error
"callee length name message "
// Symbol
"hasInstance isConcatSpreadable iterator match replace search species split toPrimitive toStringTag unscopables prototype "
"asyncIterator hasInstance isConcatSpreadable iterator match replace search species split toPrimitive toStringTag unscopables prototype "
// Array, ArrayBuffer, DataView, Map
"length " "byteLength buffer byteOffset " "size "
// RegExp
"index input lastIndex lastMatch lastParen leftContext rightContext " "global ignoreCase multiline source "
"index input lastIndex lastMatch lastParen leftContext rightContext " "dotAll global ignoreCase multiline source unicode "
// Debug
"debuggerEnabled setNonUserCodeExceptions "

Expand Down
3 changes: 3 additions & 0 deletions tools/lang/JavaScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Function(p1, p2, … , pn, body) {
Boolean(value)

Symbol([description]) {
asyncIterator
hasInstance
isConcatSpreadable
iterator
Expand Down Expand Up @@ -294,11 +295,13 @@ RegExp(pattern, flags) {
prototype
exec(string)
test(S)
dotAll
flags
global
ignoreCase
multiline
sticky
source
unicode
}

Expand Down

0 comments on commit 4f22e0d

Please sign in to comment.