vscode-apache icon indicating copy to clipboard operation
vscode-apache copied to clipboard

enabling folding

Open minig0d opened this issue 6 years ago • 0 comments

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*<\/.*?>"
        }

minig0d avatar Jan 12 '20 02:01 minig0d