Skip to content

Commit

Permalink
Handle enclosing backtick in Kotlin lexer for identifiers, close alec…
Browse files Browse the repository at this point in the history
  • Loading branch information
notdryft committed Oct 22, 2021
1 parent 4c36740 commit 2e893f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexers/k/kotlin.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var Kotlin = internal.Register(MustNewLazyLexer(
))

func kotlinRules() Rules {
const kotlinIdentifier = "(?:[_\\p{L}][\\p{L}\\p{N}]*|`@?[_\\p{L}][\\p{L}\\p{N}]+)"
const kotlinIdentifier = "(?:[_\\p{L}][\\p{L}\\p{N}]*|`@?[_\\p{L}][\\p{L}\\p{N}]+`)"

return Rules{
"root": {
Expand Down

0 comments on commit 2e893f2

Please sign in to comment.