summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/scanners')
-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