Skip to content

Exclude comments from strings#1

Open
bordaigorl wants to merge 1 commit intohadisfr:masterfrom
bordaigorl:patch-1
Open

Exclude comments from strings#1
bordaigorl wants to merge 1 commit intohadisfr:masterfrom
bordaigorl:patch-1

Conversation

@bordaigorl
Copy link
Copy Markdown

A % in a string would comment the rest of the line, including the closing " causing the rest of the file to be recognised as a string. By excluding the prototype in strings we avoid doing any parsing in strings except catching the closing quote.

A `%` in a string would comment the rest of the line, including the closing `"` causing the rest of the file to be recognised as a string.
By excluding the prototype in strings we avoid doing any parsing in strings except catching the closing quote.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant