We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1738d9 commit 73fde59Copy full SHA for 73fde59
hcl/scanner/scanner_test.go
@@ -589,3 +589,22 @@ func countNewlines(s string) int {
589
}
590
return n
591
592
+
593
+func TestScanHeredocRegexpCompile(t *testing.T) {
594
+ cases := []string{
595
+ "0\xe1\n<<ȸ\nhello\nworld\nȸ",
596
+ }
597
598
+ for _, c := range cases {
599
+ s := New([]byte(c))
600
+ fmt.Printf("START %q\n", c)
601
602
+ for {
603
+ tok := s.Scan()
604
+ if tok.Type == token.EOF {
605
+ break
606
607
+ t.Logf("s.Scan() = %s", tok)
608
609
610
+}
0 commit comments