forth.kak (495B)
1 hook global BufCreate .+\.(fth|4th|fs|forth) %{ 2 set-option buffer filetype forth 3 } 4 5 hook global WinSetOption filetype=forth %{ 6 require-module forth 7 } 8 9 hook -group forth-highlight global WinSetOption filetype=forth %{ 10 add-highlighter window/forth ref forth 11 hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/forth } 12 } 13 14 provide-module forth %{ 15 16 add-highlighter shared/forth regions 17 add-highlighter shared/forth/comment region '\(' '\)' fill comment 18 19 }