Skip to content

Commit a385392

Browse files
committed
add parse result
1 parent a7172b9 commit a385392

File tree

1 file changed

+118
-0
lines changed
  • crates/postgresql-cst-parser/src

1 file changed

+118
-0
lines changed

crates/postgresql-cst-parser/src/cst.rs

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,124 @@ from
545545
where
546546
/*val*/ = 1;
547547
"#;
548+
549+
let expected = r#"
550+
551+
552+
553+
554+
555+
556+
557+
558+
559+
560+
561+
[email protected] "/*hoge*/"
562+
563+
564+
565+
566+
567+
568+
569+
570+
571+
572+
573+
574+
575+
576+
577+
578+
579+
580+
581+
582+
[email protected] "/*fuga*/"
583+
584+
585+
586+
587+
588+
589+
590+
591+
592+
[email protected] "/*fuga*/"
593+
594+
595+
596+
597+
598+
599+
600+
601+
602+
603+
604+
605+
606+
607+
608+
609+
610+
611+
[email protected] "/*fuga*/"
612+
613+
614+
615+
616+
617+
618+
619+
620+
621+
622+
623+
624+
625+
626+
627+
628+
629+
630+
631+
632+
[email protected] "/*#tbl*/"
633+
634+
635+
636+
637+
638+
639+
640+
641+
642+
643+
644+
645+
646+
647+
648+
649+
650+
651+
652+
653+
654+
655+
656+
657+
658+
659+
660+
661+
662+
663+
664+
*/"#;
665+
548666
eprintln!("sql:{s}");
549667
dbg!(parse(s).unwrap());
550668
}

0 commit comments

Comments
 (0)