1
0
Fork 0

Tweak to allow matching delimiter within the string

pull/10072/head
Jordi Boggiano 2021-08-22 12:13:25 +02:00
parent c44be998ab
commit f6c446bdd7
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 2 deletions

View File

@ -257,8 +257,8 @@ class ClassMapGenerator
(?:
# non-word or non-space char, then anything goes for the rest of the line
[^\s\w][^\r\n]+
# white-space (possessive match) not followed by the delimiter, then anything goes for the rest of the line
| \s*+(?!\\2)[^\r\n]+
# white-space (possessive match) not followed by the end delimiter, then anything goes for the rest of the line
| \s*+(?!\\2 \s*[;,.)])[^\r\n]+
# white-space but no new lines
| [\t\f\v ]+
)