Open dsl101 opened 4 years ago
I suspect it is the depth of nested scopes. This example demonstrates. But still, is this the theme or syntax file?
// 8 levels OK
if (true) { // 1
if (true) { // 2
if (true) { // 3
if (true) { // 4
if (true) { // 5
if (true) { // 6
if (true) { // 7
if (true) { // 8
p.then(result => { console.log('meh') })
}
}
}
}
}
}
}
}
// 9 levels not OK
if (true) { // 1
if (true) { // 2
if (true) { // 3
if (true) { // 4
if (true) { // 5
if (true) { // 6
if (true) { // 7
if (true) { // 8
if (true) { // 9 Syntax colouring breaks from here
p.then(result => { console.log('meh') })
}
}
}
}
}
}
}
}
}
Idk, if it's a good pleace but imported types:
On build-in monokai
On Monokai++:
Again, I'm unsure if this is a syntax issue or a theme issue, but here's the block of code showing the problem. Highlighting from the
permission
variable inside the second promise handler starts to go wrong, and never really recovers:The scope data for the first (correct)
permission
is:and for the second (incorrect) one it's:
Can you tell what's going wrong here?