498
// literals and unknown symbols
499
default:
500
>
// is a literal? Read the full word.
json.ts
501
>
while (pos < len && isUnknownContentCharacter(code)) {
502
>
pos++;
503
>
code = text.charCodeAt(pos);
504
>
}
505
>
if (tokenOffset !== pos) {
506
>
value = text.substring(tokenOffset, pos);
507
>
// keywords: true, false, null
508
>
switch (value) {
509
>
case 'true': return token = SyntaxKind.TrueKeyword;
510
>
case 'false': return token = SyntaxKind.FalseKeyword;
511
>
case 'null': return token = SyntaxKind.NullKeyword;
512
>
}
513
return token = SyntaxKind.Unknown;
514
}