File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ export class Lexer {
91
91
export function isPunctuatorTokenKind ( kind : TokenKind ) : boolean {
92
92
return (
93
93
kind === TokenKind . BANG ||
94
+ kind === TokenKind . ASTERISK ||
94
95
kind === TokenKind . DOLLAR ||
95
96
kind === TokenKind . AMP ||
96
97
kind === TokenKind . PAREN_L ||
@@ -246,7 +247,7 @@ function readNextToken(lexer: Lexer, start: number): Token {
246
247
// - FloatValue
247
248
// - StringValue
248
249
//
249
- // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
250
+ // Punctuator :: one of ! $ & ( ) * ... : = @ [ ] { | }
250
251
case 0x0021 : // !
251
252
return createToken ( lexer , TokenKind . BANG , position , position + 1 ) ;
252
253
case 0x0024 : // $
@@ -257,6 +258,8 @@ function readNextToken(lexer: Lexer, start: number): Token {
257
258
return createToken ( lexer , TokenKind . PAREN_L , position , position + 1 ) ;
258
259
case 0x0029 : // )
259
260
return createToken ( lexer , TokenKind . PAREN_R , position , position + 1 ) ;
261
+ case 0x002a : // *
262
+ return createToken ( lexer , TokenKind . ASTERISK , position , position + 1 ) ;
260
263
case 0x002e : // .
261
264
if (
262
265
body . charCodeAt ( position + 1 ) === 0x002e &&
You can’t perform that action at this time.
0 commit comments