From dfb2cfd3bcb9a02fdeb2232d407432f6dcdb0ddf Mon Sep 17 00:00:00 2001 From: Alexandre Borela Date: Thu, 8 Nov 2018 15:41:53 -0200 Subject: [PATCH] [JS] Fix function constructor in object literal --- syntaxes/fjsx15/literal/object/property.sublime-syntax | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syntaxes/fjsx15/literal/object/property.sublime-syntax b/syntaxes/fjsx15/literal/object/property.sublime-syntax index 5c026423..a99363c9 100644 --- a/syntaxes/fjsx15/literal/object/property.sublime-syntax +++ b/syntaxes/fjsx15/literal/object/property.sublime-syntax @@ -162,7 +162,10 @@ contexts: {{keyIdentifier}} \s*:\s* (?:async\b\s+)? - function\b + function + (?> \s+{{commonIdentifier}} + | \( + ) ) set: [ function-declaration,