From 42e2ca35e1e76699c5cbe8b35ffe8964a67c40fc Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Sat, 13 Feb 2016 10:31:05 +0100 Subject: cleanup --- lib/coderay/scanners/json5.rb | 2 +- lib/coderay/scanners/lua2.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/coderay') diff --git a/lib/coderay/scanners/json5.rb b/lib/coderay/scanners/json5.rb index 2933483..2b2dbdd 100644 --- a/lib/coderay/scanners/json5.rb +++ b/lib/coderay/scanners/json5.rb @@ -44,7 +44,7 @@ module Scanners protected scan_tokens_code = <<-"RUBY" - def scan_tokens encoder, options + def scan_tokens encoder, options#{ def_line = __LINE__; nil } state = options[:state] || @state if [:string, :key].include? state diff --git a/lib/coderay/scanners/lua2.rb b/lib/coderay/scanners/lua2.rb index fe63897..866dded 100644 --- a/lib/coderay/scanners/lua2.rb +++ b/lib/coderay/scanners/lua2.rb @@ -141,7 +141,6 @@ module Scanners # encoder.text_token("\\n\n", :error) # Visually appealing error indicator--otherwise users may wonder whether the highlighter cannot highlight multine strings end - # CodeRay entry hook. Starts parsing. scan_tokens_code = <<-"RUBY" def scan_tokens encoder, options#{ def_line = __LINE__; nil } state = options[:state] || @state -- cgit v1.2.1