From e1833801f82c40413b5a1191a0c0baa9320d8e86 Mon Sep 17 00:00:00 2001 From: Matt Schick Date: Sun, 8 Jan 2017 17:29:36 -0800 Subject: [PATCH] Change html highlighting to be ref inside of hbs highlighting --- rc/extra/hbs.kak | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/rc/extra/hbs.kak b/rc/extra/hbs.kak index 8e350ffc..f3bdeb53 100644 --- a/rc/extra/hbs.kak +++ b/rc/extra/hbs.kak @@ -16,6 +16,7 @@ addhl -group / regions -default html hbs \ comment {{! }} '' \ block-expression {{ }} '' +addhl -group /hbs/html ref html addhl -group /hbs/comment fill comment addhl -group /hbs/block-expression regex {{((#|/|)(\w|-)+) 1:meta @@ -54,9 +55,8 @@ def -hidden _hbs_indent_on_new_line %{ # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ -hook -group hbs-highlight global WinSetOption filetype=hbs %{ - addhl ref hbs - addhl ref html +hook -group hbs-highlight global WinSetOption filetype=hbs %{ + addhl ref hbs } hook global WinSetOption filetype=hbs %{ @@ -64,9 +64,8 @@ hook global WinSetOption filetype=hbs %{ hook window InsertChar \n -group hbs-indent _hbs_indent_on_new_line } -hook -group hbs-highlight global WinSetOption filetype=(?!hbs).* %{ - rmhl hbs - rmhl html +hook -group hbs-highlight global WinSetOption filetype=(?!hbs).* %{ + rmhl hbs } hook global WinSetOption filetype=(?!hbs).* %{