Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
DiscreteTom committed Aug 20, 2023
1 parent 187cd99 commit 0ad6695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ All conflicts are auto resolved.
const lexer = new Lexer.Builder()
.ignore(Lexer.whitespaces) // ignore blank characters
.define({
string: Lexer.stringLiteral({ double: true }), // double quote string literal
string: Lexer.stringLiteral(`"`), // double quote string literal
number: /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,
})
.define(Lexer.wordType("true", "false", "null")) // type's name is the literal value
Expand Down

0 comments on commit 0ad6695

Please sign in to comment.