diff options
Diffstat (limited to 'lib/coderay/scanners')
-rw-r--r-- | lib/coderay/scanners/json.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/coderay/scanners/json.rb b/lib/coderay/scanners/json.rb index d899e05..a9926b2 100644 --- a/lib/coderay/scanners/json.rb +++ b/lib/coderay/scanners/json.rb @@ -8,8 +8,13 @@ module Scanners register_for :json file_extension 'json' + KINDS_NOT_LOC = [ + :float, :char, :content, :delimiter, + :error, :integer, :operator, :value, + ] + CONSTANTS = %w( true false null ) - IDENT_KIND = WordList.new(:key).add(CONSTANTS, :reserved) + IDENT_KIND = WordList.new(:key).add(CONSTANTS, :value) ESCAPE = / [bfnrt\\"\/] /x UNICODE_ESCAPE = / u[a-fA-F0-9]{4} /x |