Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 2e64c0d

Browse files
committed
Fixes #11629
1 parent 11b663e commit 2e64c0d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/language/CSSUtils.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ define(function (require, exports, module) {
9595
}
9696

9797
state = ctx.token.state.localState || ctx.token.state;
98+
if (!state.context && ctx.token.state.html.localState) {
99+
state = ctx.token.state.html.localState;
100+
}
98101

99102
if (!state.context) {
100103
return false;
@@ -130,6 +133,9 @@ define(function (require, exports, module) {
130133
}
131134

132135
state = ctx.token.state.localState || ctx.token.state;
136+
if (!state.context && ctx.token.state.html.localState) {
137+
state = ctx.token.state.html.localState;
138+
}
133139

134140
if (!state.context || !state.context.prev) {
135141
return false;
@@ -152,6 +158,9 @@ define(function (require, exports, module) {
152158
}
153159

154160
state = ctx.token.state.localState || ctx.token.state;
161+
if (!state.context && ctx.token.state.html.localState) {
162+
state = ctx.token.state.html.localState;
163+
}
155164

156165
if (!state.context) {
157166
return false;

0 commit comments

Comments
 (0)