blob: 7ec77d4be593ce0b35a5e2333e3267190c6980ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}
|