From 61db49fb86a9ea370194180da12db33152dc943c Mon Sep 17 00:00:00 2001 From: Pickle Cillo Date: Mon, 27 Dec 2021 09:17:46 -0300 Subject: [PATCH] Fix / Workaround for: Error in regex: target of repeat operator is invalid in regex --- grammars/MagicPython.tmLanguage | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/grammars/MagicPython.tmLanguage b/grammars/MagicPython.tmLanguage index 5a07f54..7b14c34 100644 --- a/grammars/MagicPython.tmLanguage +++ b/grammars/MagicPython.tmLanguage @@ -855,7 +855,7 @@ E.g. "arr[idx](args)" match - (\\)\s*(\S.*$\n?) + (\\)\s*(\S.*$\&x6e;?) captures 1 @@ -872,7 +872,7 @@ E.g. "arr[idx](args)" begin - (\\)\s*$\n? + (\\)\s*$\&x6e;? end (?x) (?=^\s*$) @@ -1384,7 +1384,7 @@ E.g. "arr[idx](args)" comment it is illegal to have a multiline brace inside a single-line string begin - (\{)(?=[^\n}]*$\n?) + (\{)(?=[^\n}]*$\&x6e;?) end (\})|(?=\n) beginCaptures @@ -8181,7 +8181,7 @@ indirectly through syntactic constructs The guard for newlines has to be separate from the lookahead because of special $ matching rule.) - ($\n?) + ($\&x6e;?) | (?=[\\\}\{]|(['"])|((?<!\\)\n)) ) @@ -8204,7 +8204,7 @@ indirectly through syntactic constructs The guard for newlines has to be separate from the lookahead because of special $ matching rule.) - ($\n?) + ($\&x6e;?) | (?=[\\\}\{]|(['"])|((?<!\\)\n)) ) @@ -8553,7 +8553,7 @@ indirectly through syntactic constructs The guard for newlines has to be separate from the lookahead because of special $ matching rule.) - ($\n?) + ($\&x6e;?) | (?=[\\\}\{]|'''|""") ) @@ -8576,7 +8576,7 @@ indirectly through syntactic constructs The guard for newlines has to be separate from the lookahead because of special $ matching rule.) - ($\n?) + ($\&x6e;?) | (?=[\\\}\{]|'''|""") )