diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2016-02-13 10:31:05 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2016-02-13 10:31:05 +0100 |
commit | 42e2ca35e1e76699c5cbe8b35ffe8964a67c40fc (patch) | |
tree | 5667707d6a33ee362d4d9bb486f0302b9b10a120 /lib/coderay | |
parent | dd1d7791d818152506f48a6d429d882e4bda2087 (diff) | |
download | coderay-42e2ca35e1e76699c5cbe8b35ffe8964a67c40fc.tar.gz |
cleanup
Diffstat (limited to 'lib/coderay')
-rw-r--r-- | lib/coderay/scanners/json5.rb | 2 | ||||
-rw-r--r-- | lib/coderay/scanners/lua2.rb | 1 |
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 |