diff --git a/rc/filetype/makefile.kak b/rc/filetype/makefile.kak index 7f7ebbe5..26f4f564 100644 --- a/rc/filetype/makefile.kak +++ b/rc/filetype/makefile.kak @@ -33,7 +33,7 @@ add-highlighter shared/makefile/content default-region group add-highlighter shared/makefile/comment region '#' '$' fill comment add-highlighter shared/makefile/evaluate-commands region -recurse '\(' '\$\(' '\)' fill value -add-highlighter shared/makefile/content/ regex ^[\w.%-]+\h*:\s 0:variable +add-highlighter shared/makefile/content/ regex ^\S.*?(::|:|!)\s 0:variable add-highlighter shared/makefile/content/ regex [+?:]= 0:operator evaluate-commands %sh{ @@ -55,7 +55,7 @@ define-command -hidden makefile-indent-on-new-line %{ # preserve previous line indent try %{ execute-keys -draft \;K } ## If the line above is a target indent with a tab - try %{ execute-keys -draft Z k ^[^:]+:\s z i } + try %{ execute-keys -draft Z k ^\S.*?(::|:|!)\s z i } # cleanup trailing white space son previous line try %{ execute-keys -draft k s \h+$ d } # indent after some keywords