Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Add support for ES6 HTML-style comments #371

Closed
wants to merge 2 commits into from
Closed

Conversation

winstliu
Copy link
Contributor

Also end comments when a </script> tag is encountered. This is because HTML and JavaScript can intelligently detect when to break out of the comment and end the script block. Unfortunately, since we're using a 100% regex-based parser, there's really not much we can do to detect if we're embedded (writing this just now gave me an idea though...will look into it later). So for now we just be as conservative as possible.

Unblocks atom/language-html#90

Also end comments when a </script> tag is encountered (bad solution, but
that's the best we can do with regex right now)
@JonathanWolfe
Copy link

Do you need an Atom Member to review or am I allowed to?

@winstliu
Copy link
Contributor Author

Of course you can review it. Though I'm pretty sure I was dissatisfied with this approach and/or something was wrong with it. Should probably have documented that somewhere because now I can't remember.

@JonathanWolfe
Copy link

Well if you still want to bring this in, just rebase the branch and I'll check the spec and make some comments on improvements.

…l-comments

# Conflicts:
#	grammars/javascript.cson
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants