Skip to content

Commit

Permalink
allow any non '}' in environment name for indent
Browse files Browse the repository at this point in the history
Several non-alphabetic characters are allowed in environment names including numbers and '*', e.g. "equation*".
  • Loading branch information
ArborealAnole authored May 2, 2020
1 parent 61d7b1a commit 71eb4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/syntax.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
["$", "$"]
],
"indentationRules": {
"increaseIndentPattern": "\\\\begin{(?!document)([a-zA-Z]*)}(?!.*\\\\end{\\1})",
"increaseIndentPattern": "\\\\begin{(?!document)([^}]*)}(?!.*\\\\end{\\1})",
"decreaseIndentPattern": "^\\s*\\\\end{(?!document)"
},
"folding": {
Expand Down

0 comments on commit 71eb4fb

Please sign in to comment.