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?(".*?"|\'.*?\')))' }