vscode-apache
vscode-apache copied to clipboard
enabling folding
Sorry me and git don't get along so I can't do a PR... but some dropin code if you want to implement... Took a while to get VSC's wonky regex to like it and couldn't figure out a way to get the reference the capture group from end to work so had to replace it with a wildcard... (guessing it's safe enough but I'm sure it could be tightened up a little)
"folding": {
"markers": {
"start": "^\\s*<(?!\/)(\\S*)(.*?)>(?!\/>)",
"end": "^\\s*<\/.*?>"
}