Don't count readonly keyword as a token

Merge pull request #67 from Kadowns/feature/readonly-token-ignore
This commit is contained in:
Sebastian Lague 2023-07-22 05:55:53 +02:00 committed by GitHub
commit 7e7b9d0988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ namespace ChessChallenge.Application
SyntaxKind.PublicKeyword, SyntaxKind.PublicKeyword,
SyntaxKind.SemicolonToken, SyntaxKind.SemicolonToken,
SyntaxKind.CommaToken, SyntaxKind.CommaToken,
SyntaxKind.ReadOnlyKeyword,
// only count open brace since I want to count the pair as a single token // only count open brace since I want to count the pair as a single token
SyntaxKind.CloseBraceToken, SyntaxKind.CloseBraceToken,
SyntaxKind.CloseBracketToken, SyntaxKind.CloseBracketToken,