Similar tests for CSS already catch this problem in tCSS.
R=nigeltao
CC=golang-dev
https://golang.org/cl/
4967065
case '/':
switch {
case i+1 < len(s) && s[i+1] == '/':
- c.state = stateJSLineCmt
+ c.state, i = stateJSLineCmt, i+1
case i+1 < len(s) && s[i+1] == '*':
- c.state = stateJSBlockCmt
+ c.state, i = stateJSBlockCmt, i+1
case c.jsCtx == jsCtxRegexp:
c.state = stateJSRegexp
default:
`<a onclick="/*`,
context{state: stateJSBlockCmt, delim: delimDoubleQuote},
},
+ {
+ `<a onclick="/*/`,
+ context{state: stateJSBlockCmt, delim: delimDoubleQuote},
+ },
+ {
+ `<a onclick="/**/`,
+ context{state: stateJS, delim: delimDoubleQuote},
+ },
{
`<a onkeypress=""`,
context{state: stateJSDqStr, delim: delimDoubleQuote},