Skip to content

Commit

Permalink
fix readme link
Browse files Browse the repository at this point in the history
  • Loading branch information
bcpeinhardt committed Jan 15, 2024
1 parent 4ab6208 commit 44206aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ If available on Hex this package can be added to your Gleam project:
gleam add csv
```

and its documentation can be found at <https://hexdocs.pm/csv>.
and its documentation can be found at <https://hexdocs.pm/gsv>.
4 changes: 2 additions & 2 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# You typically do not need to edit this file

packages = [
{ name = "gleam_stdlib", version = "0.32.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "07D64C26D014CF570F8ACADCE602761EA2E74C842D26F2FD49B0D61973D9966F" },
{ name = "gleeunit", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D3682ED8C5F9CAE1C928F2506DE91625588CC752495988CBE0F5653A42A6F334" },
{ name = "gleam_stdlib", version = "0.34.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "1FB8454D2991E9B4C0C804544D8A9AD0F6184725E20D63C3155F0AEB4230B016" },
{ name = "gleeunit", version = "1.0.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D364C87AFEB26BDB4FB8A5ABDE67D635DC9FA52D6AB68416044C35B096C6882D" },
]

[requirements]
Expand Down
13 changes: 8 additions & 5 deletions src/gsv/internal/ast.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ fn parse_p(
[#(tok, loc), ..], Beginning, _ ->
Error(ParseError(
loc,
"Unexpected start to csv content: " <> token.to_lexeme(tok),
"Unexpected start to csv content: "
<> token.to_lexeme(tok),
))

// If we just parsed a field, we're expecting either a comma or a CRLF
Expand All @@ -77,7 +78,8 @@ fn parse_p(
[#(tok, loc), ..], JustParsedField, _ ->
Error(ParseError(
loc,
"Expected comma or newline after field, found: " <> token.to_lexeme(tok),
"Expected comma or newline after field, found: "
<> token.to_lexeme(tok),
))

// If we just parsed a CR, we're expecting an LF
Expand All @@ -87,7 +89,8 @@ fn parse_p(
[#(tok, loc), ..], JustParsedCR, _ ->
Error(ParseError(
loc,
"Expected \"\\n\" after \"\\r\", found: " <> token.to_lexeme(tok),
"Expected \"\\n\" after \"\\r\", found: "
<> token.to_lexeme(tok),
))

// If we just parsed a comma, we're expecting an Escaped or Non-Escaped string, or another comma
Expand Down Expand Up @@ -123,7 +126,7 @@ fn parse_p(
Error(ParseError(
loc,
"Expected escaped or non-escaped string after comma, found: "
<> token.to_lexeme(tok),
<> token.to_lexeme(tok),
))

// If we just parsed a new line, we're expecting an escaped or non-escaped string
Expand All @@ -143,7 +146,7 @@ fn parse_p(
Error(ParseError(
loc,
"Expected escaped or non-escaped string after newline, found: "
<> token.to_lexeme(tok),
<> token.to_lexeme(tok),
))

// If we're inside an escaped string, we can take anything until we get a double quote,
Expand Down

0 comments on commit 44206aa

Please sign in to comment.