lexer_json.ts

Hand-written JSON lexer (accepts JSONC — line and block comments).

Emits: property (a string key), string, comment, number, punctuation, operator (:), boolean, and null (aliased to keyword).

Resilience: unterminated strings extend to end of line; unterminated block comments extend to end of window.

view source

Declarations
#

lexer_json
#

lexer_json.ts view source

SyntaxLang import {lexer_json} from '@fuzdev/fuz_code/lexer_json.js';

The JSON language registration for the lexer engine.

Depends on
#

Imported by
#