Skip to content

Detect when in a string literal#47

Merged
klauspost merged 2 commits intoklauspost:masterfrom
hughdavenport:bug-46
Mar 30, 2022
Merged

Detect when in a string literal#47
klauspost merged 2 commits intoklauspost:masterfrom
hughdavenport:bug-46

Conversation

@hughdavenport
Copy link
Contributor

This PR detects when you are within a string or character literal to avoid adding spaces around ,, ;, and // markers.

Fixes #46

@klauspost
Copy link
Owner

Thanks a bunch. Sorry you had to deal with this messy code, but your change looks good. Merging ASAP.

@klauspost klauspost merged commit ef134b9 into klauspost:master Mar 30, 2022
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.

asmfmt incorrectly alters quoted strings

2 participants