mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Expand a comment.
This commit is contained in:
parent
8609c38451
commit
35687f1b0f
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -76,7 +76,8 @@ def PreparePreproc(script):
|
|||
# a<return>b. But in LSL, forgetting about the preprocessor, the string
|
||||
# "a\\<return>nb" is valid and stands for a\<return>nb. The principle of
|
||||
# least surprise seems to suggest to accept valid LSL strings as LSL
|
||||
# instead of reproducing that C quirk.
|
||||
# instead of reproducing that C quirk. This also matches what FS is doing
|
||||
# currently, so it's good for compatibility.
|
||||
tok = re.compile(
|
||||
r'(?:'
|
||||
r'/(?:\?\?/\n|\\\n)*\*.*?\*(?:\?\?/\n|\\\n)*/'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue