Skip to content

Commit

Permalink
fix tab indent in double-quote
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Nov 28, 2024
1 parent eed0699 commit 0824796
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion scanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func (s *Scanner) scanDoubleQuote(ctx *Context) (*token.Token, error) {
isNewLine = true
s.progressLine(ctx)
continue
} else if c == ' ' && isFirstLineChar {
} else if isFirstLineChar && (c == ' ' || c == '\t') {
continue
} else if c == '\\' {
isFirstLineChar = false
Expand Down
1 change: 0 additions & 1 deletion yaml_test_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ var failureTestNames = []string{
"spec-example-7-19-single-pair-flow-mappings",
"spec-example-7-20-single-pair-explicit-entry",
"spec-example-7-24-flow-nodes",
"spec-example-7-6-double-quoted-lines",
"spec-example-7-9-single-quoted-lines",
"spec-example-8-10-folded-lines-8-13-final-empty-lines",
"spec-example-8-15-block-sequence-entry-types",
Expand Down

0 comments on commit 0824796

Please sign in to comment.