diff --git a/languages/latex-cpp-embedded-language-configuration.json b/languages/latex-cpp-embedded-language-configuration.json index 4dc8b62..3a54594 100644 --- a/languages/latex-cpp-embedded-language-configuration.json +++ b/languages/latex-cpp-embedded-language-configuration.json @@ -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" diff --git a/syntaxes/markdown-latex-combined.tmLanguage.json b/syntaxes/markdown-latex-combined.tmLanguage.json index 4be4dee..66253dd 100644 --- a/syntaxes/markdown-latex-combined.tmLanguage.json +++ b/syntaxes/markdown-latex-combined.tmLanguage.json @@ -4,7 +4,7 @@ "If you want to provide a fix or improvement, please create a pull request against the original repository.", "Once accepted there, we are happy to receive an update request." ], - "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/0b36cbbf917fb0188e1a1bafc8287c7abf8b0b37", + "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/f75d5f55730e72ee7ff386841949048b2395e440", "name": "Markdown", "scopeName": "text.tex.markdown_latex_combined", "patterns": [ @@ -1260,7 +1260,7 @@ ] }, "fenced_code_block_powershell": { - "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(powershell|ps1|psm1|psd1)((\\s+|:|,|\\{|\\?)[^`]*)?$)", + "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(powershell|ps1|psm1|psd1|pwsh)((\\s+|:|,|\\{|\\?)[^`]*)?$)", "name": "markup.fenced_code.block.markdown", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "beginCaptures": {