From b119647e352cf01b2f29c2bb63858ef5c06e91ab Mon Sep 17 00:00:00 2001 From: Shubham Ugare Date: Mon, 21 Jul 2025 00:22:42 -0500 Subject: [PATCH] Fix Python grammar issue --- syncode/parsers/grammars/grammar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncode/parsers/grammars/grammar.py b/syncode/parsers/grammars/grammar.py index 76d13fce..28fd1547 100644 --- a/syncode/parsers/grammars/grammar.py +++ b/syncode/parsers/grammars/grammar.py @@ -49,7 +49,7 @@ def simplifications(self): # Simplifications for python python_simplifications = { 'COMMENT': '(?i:(?s:(#.*|\'\'\'.*?\'\'\'|""".*?""")))', - '_NL': '(?s:(?i:\n(.*)))', + '_NL': '(?s:(?i:\n))', 'LONG_STRING': '(?i:(?s:(\'\'\'.*?\'\'\'|""".*?""")))', 'STRING': '(?s:(?i:[ubf]?r?(".*?"|\'.*?\')))' }