Skip to content

Commit bd7045e

Browse files
committed
Use the erlang filetype for escript files
1 parent 996b8aa commit bd7045e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rc/filetype/erlang.kak

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Detection
88
# ‾‾‾‾‾‾‾‾‾
9-
hook global BufCreate .*[.](erl|hrl) %{
9+
hook global BufCreate .*[.](erl|escript|hrl) %{
1010
set-option buffer filetype erlang
1111
}
1212

@@ -31,6 +31,7 @@ provide-module erlang %[
3131
add-highlighter shared/erlang regions
3232
add-highlighter shared/erlang/default default-region group
3333

34+
add-highlighter shared/erlang/shebang region ^#! $ fill meta
3435
add-highlighter shared/erlang/comment region '(?<!\$)%' '$' fill comment
3536
add-highlighter shared/erlang/attribute_atom_single_quoted region %{-'} %{(?<!\\)(?:\\\\)*'(?=[\( \.])} fill builtin
3637
add-highlighter shared/erlang/attribute region '\b-[a-z][\w@]*(?=[\( \.])' '\K' fill builtin

0 commit comments

Comments
 (0)