Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rc/filetype/erlang.kak
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Detection
# ‾‾‾‾‾‾‾‾‾
hook global BufCreate .*[.](erl|hrl) %{
hook global BufCreate .*[.](erl|escript|hrl) %{
set-option buffer filetype erlang
}

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

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