vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 5b5a5f384ccc3c1ec86a097e9e8ff041764c8d45
parent 77171a744a7046bf94e8bf9edbc0838db6992cc7
Author: Matěj Cepl <mcepl@cepl.eu>
Date:   Wed, 21 Feb 2024 19:31:45 +0100

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.

Diffstat:
Mlua/plugins/filetype.lua | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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" },