From 5f97117ab450bdc89e84451335af73c2516d87a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Ros=C3=A9n?= Date: Mon, 15 May 2017 20:56:00 +0200 Subject: [PATCH] Remove ad-hoc rules in kakrc highlighter These are less useful with more static words, and they are woefully incomplete: no support -docstring for map, set uses the variable face, but there is no corresponding highlighter for decl or %opt{..}. --- rc/core/kakrc.kak | 3 --- 1 file changed, 3 deletions(-) diff --git a/rc/core/kakrc.kak b/rc/core/kakrc.kak index 85ddb374..6e970451 100644 --- a/rc/core/kakrc.kak +++ b/rc/core/kakrc.kak @@ -38,9 +38,6 @@ add-highlighter -group / regions -default code kakrc \ } add-highlighter -group /kakrc/code regex \brgb:[0-9a-fA-F]{6}\b 0:value -add-highlighter -group /kakrc/code regex (?:\bhook)\h+(?:-group\h+\S+\h+)?(?:(global|buffer|window)|(\S+))\h+(\S+) 1:attribute 2:Error 3:variable -add-highlighter -group /kakrc/code regex (?:\bset)\h+(?:-add)?\h+(?:(global|buffer|window)|(\S+))\h+(\S+) 1:attribute 2:Error 3:variable -add-highlighter -group /kakrc/code regex (?:\bmap)\h+(?:(global|buffer|window)|(\S+))\h+(?:(normal|insert|menu|prompt|goto|view|user|object)|(\S+))\h+(\S+) 1:attribute 2:Error 3:attribute 4:Error 5:variable add-highlighter -group /kakrc/double_string fill string add-highlighter -group /kakrc/single_string fill string