File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/tree-sitter/tree-sitter-json Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 55
66module . exports = grammar ( {
77 name : "jsontm" ,
8- word : $ => $ . _string ,
8+ // word: $ => $._string,
99 extras : $ => [
1010 //$._whitespace,
1111 ] ,
@@ -488,13 +488,11 @@ module.exports = grammar({
488488 ) ,
489489
490490 boolean : $ => choice (
491- "true" , // Why does this like eating spaces
492- "false" , // hmmmm.... commmas... tasty.... WTF
493- / f a [ l \t ] s e / , // Why does it need to also match tab?!?!
494- / t r [ u \t ] e / , // Why does "true" not just work?!?!
491+ "true" ,
492+ "false" ,
495493 ) ,
496- null : $ => / n u [ l \t ] l / , // WTF is happening
497- integer : $ => / - ? ( 0 | [ 1 - 9 ] \d * ) ( \. \d + ) ? ( [ e E ] [ + - ] ? \d + ) ? / , // Why does this work?!?!
494+ null : $ => / n u l l / ,
495+ integer : $ => / - ? ( 0 | [ 1 - 9 ] \d * ) ( \. \d + ) ? ( [ e E ] [ + - ] ? \d + ) ? / ,
498496 _string : $ => token (
499497 prec ( - 1 ,
500498 repeat1 (
You can’t perform that action at this time.
0 commit comments