Skip to content

Commit

Permalink
Update latex-cpp-embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
jlelong committed Apr 9, 2024
1 parent d289624 commit 6a16810
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions languages/latex-cpp-embedded-language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
},
"onEnterRules": [
{
// Decrease indentation after single line if/else if/else, for, or while
"previousLineText": "^\\s*(((else ?)?if|for|while)\\s*\\(.*\\)\\s*|else\\s*)$",
// But make sure line doesn't have braces or is not another if statement
"beforeText": "^\\s+([^{i\\s]|i(?!f\\b))",
"action": {
"indent": "outdent"
Expand Down

0 comments on commit 6a16810

Please sign in to comment.