Skip to content

fix: try top rule on stack if it matchs found END#144

Open
daiyam wants to merge 1 commit intomasterfrom
feat-fallback
Open

fix: try top rule on stack if it matchs found END#144
daiyam wants to merge 1 commit intomasterfrom
feat-fallback

Conversation

@daiyam
Copy link
Member

@daiyam daiyam commented Nov 23, 2025

No description provided.

@daiyam
Copy link
Member Author

daiyam commented Nov 23, 2025

make

{
	"beginRegex": "^\\s*class.*{",
	"endRegex": "^\\s*}",
},
{
	"beginRegex": "^\\s*\\w+\\s*\\(.*{[^}]*$",
	"endRegex": "^\\s*}",
}

folds correctly:

class Animal {
    constructor(public name: string) { }
    move(distanceInMeters: number = 0) {
        console.log(`${this.name} moved ${distanceInMeters}m.`);
    }
}

@daiyam daiyam mentioned this pull request Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant