Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the repository name to json5-parser #18

Closed
IWANABETHATGUY opened this issue Apr 27, 2021 · 0 comments
Closed

Change the repository name to json5-parser #18

IWANABETHATGUY opened this issue Apr 27, 2021 · 0 comments

Comments

@IWANABETHATGUY
Copy link
Contributor

jsonc-parser/src/scanner.rs

Lines 317 to 334 in 6ef505d

match self.current_char() {
Some('e') | Some('E') => match self.move_next_char() {
Some('-') | Some('+') => {
self.move_next_char();
if !self.is_digit() {
return Err(self.create_error_for_current_char("Expected a digit"));
}
while self.is_digit() {
self.move_next_char();
}
}
_ => {
return Err(self.create_error_for_current_char(
"Expected plus or minus symbol in number literal",
));
}
},
_ => {}

according to the implementation, this parser could parse not only json with comments but also json5
Change the repository name or add extra keyword to get better SEO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant