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