Skip to content

Commit

Permalink
fix tab indent in single-quote
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Nov 28, 2024
1 parent 0824796 commit 5461f1f
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 @@ -256,7 +256,7 @@ func (s *Scanner) scanSingleQuote(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 != '\'' {
value = append(value, c)
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-9-single-quoted-lines",
"spec-example-8-10-folded-lines-8-13-final-empty-lines",
"spec-example-8-15-block-sequence-entry-types",
"spec-example-8-17-explicit-block-mapping-entries",
Expand Down

0 comments on commit 5461f1f

Please sign in to comment.