Parser is more restrictive of phrase commands
This commit is contained in:
parent
de7234f4d7
commit
837b1c76a4
@ -51,8 +51,10 @@ func isTokenOperator (token lexer.Token) (isOperator bool) {
|
|||||||
// validPhraseStartTokens lists all tokens that are expected when parsing the
|
// validPhraseStartTokens lists all tokens that are expected when parsing the
|
||||||
// first part of a phrase.
|
// first part of a phrase.
|
||||||
var validPhraseStartTokens = append (
|
var validPhraseStartTokens = append (
|
||||||
validArgumentStartTokens,
|
operatorTokens,
|
||||||
operatorTokens...)
|
lexer.TokenKindLBracket,
|
||||||
|
lexer.TokenKindName,
|
||||||
|
lexer.TokenKindString)
|
||||||
|
|
||||||
// validBlockLevelPhraseTokens lists all tokens that are expected when parsing
|
// validBlockLevelPhraseTokens lists all tokens that are expected when parsing
|
||||||
// a block level phrase.
|
// a block level phrase.
|
||||||
|
Reference in New Issue
Block a user