1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-19 21:10:15 +02:00

Handle enclosing backtick in Kotlin lexer for identifiers, close #565

This commit is contained in:
Guillaume Corré 2021-10-22 18:28:02 +02:00 committed by Alec Thomas
parent 4c36740e5e
commit 175c35e532

View File

@ -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": {