mirror of
https://github.com/jsbin/jsbin.git
synced 2026-02-01 16:46:05 +00:00
Some places in the code wouldn't comment out properly
This commit is contained in:
parent
707a8aef0e
commit
d013bc33a5
@ -69,6 +69,10 @@ function keycontrol(panel, event) {
|
||||
type = token && token.state && token.state.htmlState && token.state.htmlState.context && token.state.htmlState.context.tagName ? token.state.htmlState.context.tagName : 'script',
|
||||
line = panel.getLine(cur.line);
|
||||
|
||||
if (token && token.state && token.state.htmlState && token.state.htmlState.context == null) {
|
||||
type = 'html';
|
||||
}
|
||||
|
||||
if (type == 'style') {
|
||||
if (line.match(/\s*\/\*/) !== null) {
|
||||
// already contains comment - remove
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user