From cf77068940946bfa90392bf04f14c07b3be81f60 Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Mon, 7 Dec 2015 15:17:40 +0100 Subject: [PATCH] Fix bad highlighting of parameters with '-' in kickstart Parameters like "ignoredisk --only-use=sda" badly highlighted only first part of "--only-use". --- rc/kickstart.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/kickstart.kak b/rc/kickstart.kak index 90140b63..89620d76 100644 --- a/rc/kickstart.kak +++ b/rc/kickstart.kak @@ -10,7 +10,7 @@ addhl -group / regions -default code kickstart \ shell '^\h*\K%(pre|pre-install|post)\>' '^\h*\K%end\>' '' addhl -group /kickstart/code regex "^\h*\<(auth|authconfig|autopart|autostep|bootloader|btrfs|clearpart|cmdline|device|dmraid|driverdisk|fcoe|firewall|firstboot|group|graphical|halt|ignoredisk|install|cdrom|harddrive|liveimg|nfs|url|iscsi|iscsiname|keyboard|lang|logvol|logging|mediacheck|monitor|multipath|network|part|partition|poweroff|raid|realm|reboot|repo|rescue|rootpw|selinux|services|shutdown|sshkey|sshpw|skipx|text|timezone|updates|upgrade|user|vnc|volgroup|xconfig|zerombr|zfcp)\>" 1:keyword -addhl -group /kickstart/code regex '(--\w+=? ?)([^-"\n][^\h\n]*)?' 1:attribute 2:string +addhl -group /kickstart/code regex '(--[\w-]+=? ?)([^-"\n][^\h\n]*)?' 1:attribute 2:string addhl -group /kickstart/code regex '%(include|ksappend)\>' 0:keyword addhl -group /kickstart/comment fill comment