Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Lm (Letter, modifier) to small letter char #240

Merged
merged 1 commit into from
Aug 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ func isLetterChar(r rune) bool {
}

func isSmallLetterChar(r rune) bool {
return unicode.In(r, unicode.Ll, unicode.Lo)
return unicode.In(r, unicode.Ll, unicode.Lo, unicode.Lm)
}

func isCapitalLetterChar(r rune) bool {
Expand Down
1 change: 1 addition & 0 deletions engine/lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func TestLexer_Token(t *testing.T) {
{input: `프롤로그`, token: Token{Kind: TokenLetterDigit, Val: `프롤로그`}},
{input: `برولوغ`, token: Token{Kind: TokenLetterDigit, Val: `برولوغ`}},
{input: `פרולוג`, token: Token{Kind: TokenLetterDigit, Val: `פרולוג`}},
{input: `ゴー`, token: Token{Kind: TokenLetterDigit, Val: `ゴー`}},

{input: `..`, token: Token{Kind: TokenGraphic, Val: `..`}},
{input: `#`, token: Token{Kind: TokenGraphic, Val: `#`}},
Expand Down