Update javascript.yaml

Add statements `async` and `await`.

Its status is stage 3 Draft.
https://tc39.github.io/ecmascript-asyncawait/#async-function-definitions
But I think it's usefull to add, because Node.js >= v7.6 support it.
This commit is contained in:
Fuji Haruka 2017-11-06 20:52:28 +09:00 committed by GitHub
parent 423f4675d2
commit 07bfcc9747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ rules:
- symbol.brackets: "(\\(|\\))" - symbol.brackets: "(\\(|\\))"
- symbol.brackets: "(\\[|\\])" - symbol.brackets: "(\\[|\\])"
- statement: "\\b(break|case|catch|continue|default|delete|do|else|finally)\\b" - statement: "\\b(break|case|catch|continue|default|delete|do|else|finally)\\b"
- statement: "\\b(for|function|class|extends|get|if|in|instanceof|new|return|set|switch)\\b" - statement: "\\b(for|function|class|extends|get|if|in|instanceof|new|return|set|switch|async|await)\\b"
- statement: "\\b(switch|this|throw|try|typeof|var|const|let|void|while|with)\\b" - statement: "\\b(switch|this|throw|try|typeof|var|const|let|void|while|with)\\b"
- constant: "\\b(null|undefined|NaN)\\b" - constant: "\\b(null|undefined|NaN)\\b"
- constant: "\\b(true|false)\\b" - constant: "\\b(true|false)\\b"