diff --git a/extensions/positron-r/language-configuration/r-language-configuration.json b/extensions/positron-r/language-configuration/r-language-configuration.json index 8ec8f979b30..8e6216a51b0 100644 --- a/extensions/positron-r/language-configuration/r-language-configuration.json +++ b/extensions/positron-r/language-configuration/r-language-configuration.json @@ -55,6 +55,14 @@ "action": { "indent": "none", "appendText": "#* " } }, + // Regular comments. + // This must come *after* the Roxygen and Plumber rules in this file. + { + "beforeText": "^\\s*#.*", + "afterText": ".+$", + "action": { "indent": "none", "appendText": "# " } + }, + // A line ending with an operator, preceded by a blank line. { "previousLineText": "^\\s*(?:#|$)",