From d878c60f317a8542eeae50a0d98b1999374c8f34 Mon Sep 17 00:00:00 2001 From: Thomas Smith Date: Wed, 23 Oct 2019 13:40:07 -0400 Subject: [PATCH] [JavaScript] Add Promise.any|allSettled (#2131) --- JavaScript/JavaScript.sublime-syntax | 2 +- JavaScript/tests/syntax_test_js_support_builtin.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/JavaScript/JavaScript.sublime-syntax b/JavaScript/JavaScript.sublime-syntax index 2fe326bc462..b056038c77d 100644 --- a/JavaScript/JavaScript.sublime-syntax +++ b/JavaScript/JavaScript.sublime-syntax @@ -2146,7 +2146,7 @@ contexts: pop: true support-property-ecma-promise: - - match: (?:all|race|reject|resolve){{identifier_break}} + - match: (?:all|race|reject|resolve|allSettled|any){{identifier_break}} scope: support.function.builtin.js pop: true diff --git a/JavaScript/tests/syntax_test_js_support_builtin.js b/JavaScript/tests/syntax_test_js_support_builtin.js index 0705b52ab0e..3c013c962f9 100644 --- a/JavaScript/tests/syntax_test_js_support_builtin.js +++ b/JavaScript/tests/syntax_test_js_support_builtin.js @@ -361,6 +361,10 @@ Promise.reject; // ^^^^^^ support.function.builtin Promise.resolve; // ^^^^^^^ support.function.builtin +Promise.allSettled; +// ^^^^^^^^^^ support.function.builtin +Promise.any; +// ^^^ support.function.builtin Reflect.apply; // ^^^^^ support.function.builtin