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:
parent
4c36740e5e
commit
175c35e532
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user