diff options
| author | Siva Mahadevan <me@svmhdvn.name> | 2025-01-26 14:35:20 -0500 |
|---|---|---|
| committer | Siva Mahadevan <me@svmhdvn.name> | 2025-01-26 14:35:20 -0500 |
| commit | 8baa1a884000d49240c8b8f343be59a8d1749bc5 (patch) | |
| tree | 2ee8f6f4a3c0e9c66663cc110901759bad465c42 /rc | |
| parent | 28a82b06b017e3771d0efe97bfa9bd2d1f06db91 (diff) | |
rc/filetype: add forth.kak
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 + +} |
