From c67cf82a83ca63a8b3ef7bee294f3233749f33d8 Mon Sep 17 00:00:00 2001 From: Alexandre Borela Date: Wed, 24 Jan 2018 16:26:39 -0200 Subject: [PATCH] [FJSX15] Make patterns non greedy --- .../fjsx15/literal/string/regex/capturing-group.sublime-syntax | 2 +- syntaxes/fjsx15/literal/string/regex/lookahead.sublime-syntax | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/syntaxes/fjsx15/literal/string/regex/capturing-group.sublime-syntax b/syntaxes/fjsx15/literal/string/regex/capturing-group.sublime-syntax index 53558e8e..01ff1396 100644 --- a/syntaxes/fjsx15/literal/string/regex/capturing-group.sublime-syntax +++ b/syntaxes/fjsx15/literal/string/regex/capturing-group.sublime-syntax @@ -27,7 +27,7 @@ contexts: - match: \) scope: punctuation.definition.group.end.regexp.js.fjsx15 pop: true - - match: (?=\s*\S) + - match: (?=\S) push: regex-content meta: diff --git a/syntaxes/fjsx15/literal/string/regex/lookahead.sublime-syntax b/syntaxes/fjsx15/literal/string/regex/lookahead.sublime-syntax index 93487bce..74e311d0 100644 --- a/syntaxes/fjsx15/literal/string/regex/lookahead.sublime-syntax +++ b/syntaxes/fjsx15/literal/string/regex/lookahead.sublime-syntax @@ -27,7 +27,7 @@ contexts: - match: \) scope: punctuation.definition.group.assertion.end.regexp.js.fjsx15 pop: true - - match: (?=\s*\S) + - match: (?=\S) push: regex-content meta: