Skip to content

Commit

Permalink
Merge pull request #90 from Danp2/dp_folding
Browse files Browse the repository at this point in the history
Add code folding for multiple code structures
  • Loading branch information
loganch authored May 3, 2022
2 parents d535585 + 9fdd173 commit 5c73247
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions syntaxes/autoit-language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }
],
"folding": {
"offSide": true,
"markers": {
"start": "^\\s*\\s*(#?[Rr]egion\\b)|([Ff]unc\\b)",
"end": "^\\s*\\s*(#?[Ee]nd[Rr]egion\\b)|([Ee]nd[Ff]unc)"
"start": "^\\s*\\s*(#?[Rr]egion\\b)|([Ff]unc\\b)|([iI]f\\b)|([sS]witch\\b)|([fF]or\\b)|([wW]hile\\b)|([wW]ith\\b)",
"end": "^\\s*\\s*(#?[Ee]nd[Rr]egion\\b)|([Ee]nd[Ff]unc)|([eE]nd[iI]f)|([eE]nd[sS]witch)|([nN]ext)|([wW][eE]nd)|([eE]nd[wW]ith)"
}
},
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)"
Expand Down

0 comments on commit 5c73247

Please sign in to comment.