From 8920a8fbd86d47090f3b1cceaa4c7c1e2b7e5729 Mon Sep 17 00:00:00 2001 From: A-312 Date: Tue, 12 May 2020 06:26:36 +0200 Subject: [PATCH] Fix open bracket color in `return (
` ```js render() { return (
whatever
) } ``` --- JSX.sublime-syntax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JSX.sublime-syntax b/JSX.sublime-syntax index 006177e..4e76530 100644 --- a/JSX.sublime-syntax +++ b/JSX.sublime-syntax @@ -64,7 +64,7 @@ contexts: with_prototype: - include: literal-string-template - include: comments - - match: (return)?\s*\(?(?=<([a-zA-Z]+|\/)) + - match: (return)?\s*(?=\(?)(?=<([a-zA-Z]+|\/)) captures: 0: keyword.control.flow.js scope: punctuation.section.embedded.begin.jsx