Rich text / foldkit-richtext-code

jsonTokenizer

const · packages/richtext-code/src/json.ts:31

const jsonTokenizer: CodeTokenizer

JSON's tokens as syntax-property (an object key), syntax-string, syntax-number, syntax-keyword (true, false, null), and syntax-punctuation. A character JSON has no token for — a stray letter, a - with no digits — gets none, and the scan moves on.