From 175c35e53265f5aef79ff7aa35bc65d62b511d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Corr=C3=A9?= Date: Fri, 22 Oct 2021 18:28:02 +0200 Subject: [PATCH] Handle enclosing backtick in Kotlin lexer for identifiers, close #565 --- lexers/k/kotlin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/k/kotlin.go b/lexers/k/kotlin.go index b6be884..deb182e 100644 --- a/lexers/k/kotlin.go +++ b/lexers/k/kotlin.go @@ -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": {