You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While a user is editing, a rule can unexpectedly match across section boundaries, starting inside an incomplete section and extending until it finds the closing sequence of the next one.
Dim already has one measure against accidental matches, which is brace balance checking. It's only effective for patterns that match sequences inside a scope and not across scopes.
"Dim ... to prevent eye irritation and performance problems that would arise when incomplete sections of code cause a rule to match into the next section's ending. (Experimental)"↩
Context
Problem
Rare accidental matches harm user experience.
Suggestion
{ "dim.rules": [ { "pattern": "...", "max": 10 }, { "pattern": "..." } // uses the default ], "dim.max": 100 // default }Considerations
Optional features:
max.Footnotes
"Dim ... to prevent eye irritation and performance problems that would arise when incomplete sections of code cause a rule to match into the next section's ending. (Experimental)" ↩