summaryrefslogtreecommitdiff
path: root/lib/coderay
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2016-02-13 10:31:05 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2016-02-13 10:31:05 +0100
commit42e2ca35e1e76699c5cbe8b35ffe8964a67c40fc (patch)
tree5667707d6a33ee362d4d9bb486f0302b9b10a120 /lib/coderay
parentdd1d7791d818152506f48a6d429d882e4bda2087 (diff)
downloadcoderay-42e2ca35e1e76699c5cbe8b35ffe8964a67c40fc.tar.gz
cleanup
Diffstat (limited to 'lib/coderay')
-rw-r--r--lib/coderay/scanners/json5.rb2
-rw-r--r--lib/coderay/scanners/lua2.rb1
2 files changed, 1 insertions, 2 deletions
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