From 64c0092d6c17c769b502bc60850f0a5c42792f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Wed, 21 Feb 2024 19:31:45 +0100 Subject: Introduce new `modula2` and `modula3` file types. There is the textadapt module for dealing with Modula 2 by the late Nikalus Wirth and its successor Modula 3 on https://github.com/paaguti/textadept-modula-lexers. If I want to just use it, I need to have these types recognized. --- lua/plugins/filetype.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lua') diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua index 23c3600..1b580e6 100644 --- a/lua/plugins/filetype.lua +++ b/lua/plugins/filetype.lua @@ -286,6 +286,12 @@ vis.ftdetect.filetypes = { meson = { ext = { "^meson%.build$" }, }, + modula2 = { + ext = { "%.mod$", "%.def$" }, + }, + modula3 = { + ext = { "%.mg$", "%.ig$", "%.i3$", "%.m3$" }, + }, moonscript = { ext = { "%.moon$" }, mime = { "text/x-moon" }, -- cgit v1.2.3