diff options
Diffstat (limited to 'rc')
| -rw-r--r-- | rc/filetype/forth.kak | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rc/filetype/forth.kak b/rc/filetype/forth.kak new file mode 100644 index 00000000..7ec77d4b --- /dev/null +++ b/rc/filetype/forth.kak @@ -0,0 +1,19 @@ +hook global BufCreate .+\.(fth|4th|fs|forth) %{ + set-option buffer filetype forth +} + +hook global WinSetOption filetype=forth %{ + require-module forth +} + +hook -group forth-highlight global WinSetOption filetype=forth %{ + add-highlighter window/forth ref forth + hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/forth } +} + +provide-module forth %{ + +add-highlighter shared/forth regions +add-highlighter shared/forth/comment region '\(' '\)' fill comment + +} |
