Change highlight of character literals

Better support themes where red can highlight strings and thus the difference between the first and subsequent characters can become invisible
This commit is contained in:
Yerlan 2021-12-11 02:04:10 +01:00 committed by GitHub
parent 6029ee9815
commit a7676709cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ add-highlighter shared/kotlin/string/ regex \$\{.*?\} 0:value
# Character
add-highlighter shared/kotlin/character/ fill value
add-highlighter shared/kotlin/character/ regex ('.{1})(.+)(') 2:red
add-highlighter shared/kotlin/character/ regex ('.{1})(.+)(') 2:meta
# As at 15 March 2021, method see: https://regex101.com/r/Mhy4HG/1
add-highlighter shared/kotlin/code/methods regex ::([A-Za-z_][\w]*)|\.([A-Za-z_][\w]*)\s*?[\(\{]|\.([A-Za-z_][\w]*)[\s\)\}>](?=[^\(\{]) 1:function 2:function 3:function