Skip to content

Commit 8de667b

Browse files
authored
Merge pull request #219 from structuredllm/fix12
Fix Python grammar issue
2 parents 34e0a0c + b119647 commit 8de667b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syncode/parsers/grammars/grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def simplifications(self):
4949
# Simplifications for python
5050
python_simplifications = {
5151
'COMMENT': '(?i:(?s:(#.*|\'\'\'.*?\'\'\'|""".*?""")))',
52-
'_NL': '(?s:(?i:\n(.*)))',
52+
'_NL': '(?s:(?i:\n))',
5353
'LONG_STRING': '(?i:(?s:(\'\'\'.*?\'\'\'|""".*?""")))',
5454
'STRING': '(?s:(?i:[ubf]?r?(".*?"|\'.*?\')))'
5555
}

0 commit comments

Comments
 (0)