diff --git a/README.md b/README.md index 98784c17..bae473d8 100644 --- a/README.md +++ b/README.md @@ -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