Open rchl opened 1 year ago
It seems like the easy fix would be replacing the default\b
pattern in the indent rules with something like default:\b
(and perhaps something similar for case
). I'm not that familiar with the indent rules, though.
EDIT: never mind, that obviously would not solve the problem.
Solving this via scoping would be tricky due to https://github.com/sublimehq/sublime_text/issues/2152.
Typing
default
as the key name in an object triggers dedent:Expected behavior
Actual behavior
Steps to reproduce
Write
default
inside an object:The scopes are
source.js meta.mapping.js
in this location so I guess dedent rules could excludemeta.mapping
but then it would also disable it in code like: