summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2016-02-13 10:25:20 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2016-02-13 10:25:55 +0100
commit0d1c78656fbcdda8c5f729950d46d8ea855eeca7 (patch)
tree14b07aaf45881e1704d8b0bbbabdecaf062cc4b0 /lib
parentaaa1705c486001cd73b9787b01c2e8a1d70c1009 (diff)
downloadcoderay-0d1c78656fbcdda8c5f729950d46d8ea855eeca7.tar.gz
move comment to the top
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay/scanners/json5.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/coderay/scanners/json5.rb b/lib/coderay/scanners/json5.rb
index c68ebb7..f7f6eac 100644
--- a/lib/coderay/scanners/json5.rb
+++ b/lib/coderay/scanners/json5.rb
@@ -2,6 +2,8 @@ module CodeRay
module Scanners
# Scanner for JSON (JavaScript Object Notation).
+ #
+ # See http://json.org/ for a definition of the JSON lexic/grammar.
class JSON5 < RuleBasedScanner
register_for :json5
@@ -45,7 +47,6 @@ module Scanners
@state = :initial
end
- # See http://json.org/ for a definition of the JSON lexic/grammar.
scan_tokens_code = <<-"RUBY"
def scan_tokens encoder, options
state = options[:state] || @state