lib/textbringer/modes/c_mode.rb in textbringer-0.3.0 vs lib/textbringer/modes/c_mode.rb in textbringer-0.3.1

- old
+ new

@@ -33,11 +33,11 @@ define_syntax :string, / (?: " (?: [^\\"] | \\ (?:.|\n) )* " ) | (?: ' (?: [^\\'] | \\ (?:.|\n) )* ' ) /x - + def initialize(buffer) super(buffer) @buffer[:indent_level] = CONFIG[:c_indent_level] @buffer[:indent_tabs_mode] = CONFIG[:c_indent_tabs_mode] end @@ -66,10 +66,10 @@ :punctuator, :space, :partial_comment, :unknown ] - + TOKEN_REGEXP = /\G(?: (?<preprocessing_directive> ^[ \t\f\v]*(?:\#|%:).*(?:\\\n.*)*[^\\]\n ) | (?<comment>