/usr/share/source-highlight/json.lang is in libsource-highlight-common 3.1.8-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # JSON lang definition file
# for string types
(keyquote,key,keyquote,colon,valquote,string,valquote) = `(")([^"]+)(")(\s*:)(\s*")((?:\\"|.)*?)(")`
# for string primitives
(valquote,string,valquote) = `(^")((?:\\"|.)*?)("$)`
# for non-string types and string values (array of strings)
(keyquote,key,keyquote,colon) = `(")([^"]+)(")(\s*:?\s*)`
# duplicated from number.lang - can just include
number =
'\<[+-]?((0x[[:xdigit:]]+)|(([[:digit:]]*\.)?
[[:digit:]]+([eE][+-]?[[:digit:]]+)?))u?((int(?:8|16|32|64))|L)?\>'
symbol = ",","{","}","[","]"
keyword = "true|false|null"
|