From e539347f2a72479095ff534641956cc9ce59c139 Mon Sep 17 00:00:00 2001 From: lePerdu Date: Mon, 12 Nov 2018 15:38:13 -0500 Subject: [PATCH] Give lua block comments higher match precedence --- rc/base/lua.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/base/lua.kak b/rc/base/lua.kak index ac35052b..8b69009f 100644 --- a/rc/base/lua.kak +++ b/rc/base/lua.kak @@ -13,11 +13,11 @@ hook global BufCreate .*[.](lua) %{ add-highlighter shared/lua regions add-highlighter shared/lua/code default-region group +add-highlighter shared/lua/raw_string region -match-capture '\[(=*)\[' '\](=*)\]' fill string +add-highlighter shared/lua/raw_comment region -match-capture '--\[(=*)\[' '\](=*)\]' fill comment add-highlighter shared/lua/double_string region '"' (?