lib/textbringer/modes/c_mode.rb in textbringer-1.0.1 vs lib/textbringer/modes/c_mode.rb in textbringer-1.0.2
- old
+ new
@@ -32,9 +32,13 @@
define_syntax :string, /
(?: " (?: [^\\"] | \\ (?:.|\n) )* " ) |
(?: ' (?: [^\\'] | \\ (?:.|\n) )* ' )
/x
+ def comment_start
+ "//"
+ end
+
def initialize(buffer)
super(buffer)
@buffer[:indent_level] = CONFIG[:c_indent_level]
@buffer[:indent_tabs_mode] = CONFIG[:c_indent_tabs_mode]
end