-
-
Notifications
You must be signed in to change notification settings - Fork 15
Rule priority #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You could use nested but that will depend on your usage. |
Silly example: function t1() { // {{{
}
function t2() {
} // }}} with rules {
"begin": "{",
"end": "}",
},
{
"begin": "{{{",
"end": "}}}",
}, VS code folds |
Try
|
This folds the Actually I think just by exchanging the rule order in my above example does what I want: {
"begin": "{{{",
"end": "}}}",
},
{
"begin": "{",
"end": "}",
}, Is this expected behavior? |
Yes because if |
Is there a way to define which fold takes precedence when there are multiple matches in one line? For example, looking at the debug output I see
When I click the fold icon in VS code, it only folds between lines [272, 276]. Instead I would like for it to prioritize the second fold, between [272, 289].
The text was updated successfully, but these errors were encountered: