diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak index 3dfa4d40..4e39fc69 100644 --- a/rc/filetype/javascript.kak +++ b/rc/filetype/javascript.kak @@ -1,7 +1,7 @@ # Detection # ‾‾‾‾‾‾‾‾‾ -hook global BufCreate .*[.](js)x? %{ +hook global BufCreate .*[.]m?(js)x? %{ set-option buffer filetype javascript } diff --git a/src/diff.hh b/src/diff.hh index 0205ef73..2e719669 100644 --- a/src/diff.hh +++ b/src/diff.hh @@ -7,6 +7,7 @@ #include "array_view.hh" +#include #include #include #include