Skip to content

Commit 18fe487

Browse files
committed
allow strings to be quoted by single ticks -> '
- could this maybe fix the "MacOS mcad issue" from SolidCode#170
1 parent 010c815 commit 18fe487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solid/py_scadparser/scad_tokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
escape_sequence = r"""(\\("""+simple_escape+'|'+decimal_escape+'|'+hex_escape+'))'
4343
escape_sequence_start_in_string = r"""(\\[0-9a-zA-Z._~!=&\^\-\\?'"])"""
4444
string_char = r"""([^"\\\n]|"""+escape_sequence_start_in_string+')'
45-
t_STRING = '"'+string_char+'*"'
45+
t_STRING = '"'+string_char+'*"' + " | " + "'" +string_char+ "*'"
4646

4747
t_EQUAL = "=="
4848
t_GREATER_OR_EQUAL = ">="

0 commit comments

Comments
 (0)