multi-web-mode icon indicating copy to clipboard operation
multi-web-mode copied to clipboard

Problems with handling apostrophes in html

Open jeffkaufman opened this issue 8 years ago • 0 comments

Consider this file:

<h1>I'm using multi-web-mode</h1>
<script>
function a() {
  console.log("a");
}
</script>

When I move down inside the script multi-web-mode enables javascript-mode on the whole buffer. But javascript-mode gets confused by the apostrophe in the h1, thinks that we're inside a quote, and doesn't know how to indent properly:

screenshot

jeffkaufman avatar Jan 23 '17 15:01 jeffkaufman