Skip to content

Commit ff2dc67

Browse files
vincentwoomarijnh
authored andcommitted
[r mode] Add lineComment property
1 parent d848c8c commit ff2dc67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mode/r/r.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ CodeMirror.defineMode("r", function(config) {
138138
if (ctx.type == "block") return ctx.indent + (firstChar == "{" ? 0 : config.indentUnit);
139139
else if (ctx.align) return ctx.column + (closing ? 0 : 1);
140140
else return ctx.indent + (closing ? 0 : config.indentUnit);
141-
}
141+
},
142+
143+
lineComment: "#"
142144
};
143145
});
144146

0 commit comments

Comments
 (0)