Skip to content

Conversation

@craigerm
Copy link

Hey there,

I'm not sure if this repo is still maintained, so feel free to ignore if not.

This related to the bug in Doiuse:
anandthakker/doiuse#192

The parser will treat a comment as a string if it doesn't have a matching quote.

Example:

# Correct
echo "/* comment with matching quote */" | node example.js

TOKEN [ 'comment', '/* comment with matching quote */' ]
TOKEN [ 'root', '\n' ]

# Incorrect
echo "/* comment with ' single quote */" | node example.js

TOKEN [ 'string', "/* comment with ' single quote */\n" ]
[css-tokenize] unfinished business [ [ 'root' ], [ 'comment' ]

Thanks for your time!
Craig

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