diff --git a/examples/fixtures/all.tape b/examples/fixtures/all.tape index 73e1a8cf..faadcec6 100644 --- a/examples/fixtures/all.tape +++ b/examples/fixtures/all.tape @@ -29,9 +29,11 @@ Sleep .5 Sleep 0.5 # Type: -Type "All" Type@.5 "All" Type@500ms "All" +Type "Double Quote" +Type '"Single" Quote' +Type `"Backtick" 'Quote'` # Keys: Backspace diff --git a/lexer.go b/lexer.go index b6e92a69..908c2492 100644 --- a/lexer.go +++ b/lexer.go @@ -53,6 +53,10 @@ func (l *Lexer) NextToken() Token { tok.Type = JSON tok.Literal = "{" + l.readJSON() + "}" l.readChar() + case '`': + tok.Type = STRING + tok.Literal = l.readString('`') + l.readChar() case '\'': tok.Type = STRING tok.Literal = l.readString('\'')