Skip to content

Commit

Permalink
Add namespace,interface,enum to indentation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Feb 11, 2022
1 parent e1f8154 commit 2f683b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}
},
"indentationRules": {
"increaseIndentPattern": "(((^|[=,(:])\\s*\\b(if|else|elseif|for|while|function|sub|try|catch)\\b((?!\\b(then)\\b).)*)|(\\b(then)\\b\\s*)|({\\s*))$",
"decreaseIndentPattern": "^\\s*((\\b(else|elseif|endif|endfor|endwhile|endsub|endfunction|catch|endtry)\\b)|((\\b(end)\\s+(if|for|while|sub|function|try)\\b))|})"
"increaseIndentPattern": "(((^|[=,(:])\\s*\\b(if|else|elseif|for|while|function|sub|try|catch|namespace|interface|enum)\\b((?!\\b(then)\\b).)*)|(\\b(then)\\b\\s*)|({\\s*))$",
"decreaseIndentPattern": "^\\s*((\\b(else|elseif|endif|endfor|endwhile|endsub|endfunction|catch|endtry|endnamespace|endinterface|endenum)\\b)|((\\b(end)\\s+(if|for|while|sub|function|try|namespace|interface|enum)\\b))|})"
}
}

0 comments on commit 2f683b8

Please sign in to comment.