Skip to content

Commit 175c35e

Browse files
notdryftalecthomas
authored andcommitted
Handle enclosing backtick in Kotlin lexer for identifiers, close #565
1 parent 4c36740 commit 175c35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lexers/k/kotlin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Kotlin = internal.Register(MustNewLazyLexer(
1818
))
1919

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

2323
return Rules{
2424
"root": {

0 commit comments

Comments
 (0)