]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: add locales to kakoune syntax
authorJérémie Astor <fennecdjay@gmail.com>
Sat, 23 Apr 2022 11:24:59 +0000 (13:24 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Sat, 23 Apr 2022 11:24:59 +0000 (13:24 +0200)
highlighters/gwion.kak

index e79652f94d0aa7e3ddbba90972f9bb4ab34f0c71..ce0c2b1b8708d2982d6cb32bc27c4192c27a33ad 100644 (file)
@@ -51,6 +51,8 @@ provide-module -override gwion %{
        # literals
        add-highlighter shared/gwion/other/ regex "\B'((\\.)|[^'\\])'\B" 0:value  # char
 
+       add-highlighter shared/gwion/other/ regex "\B`((\\.)|[^'\\])*`\B" 0:value  # locales
+
        add-highlighter shared/gwion/other/ regex "\d+(u|U|l|L)?" 0:value                   # decimal
        add-highlighter shared/gwion/other/ regex "((\d+\.\d*)|(\d*\.\d+))([eE][\+-]\d+)*" 0:value           # float