aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-02-21 19:31:45 +0100
committerRandy Palamar <randy@rnpnr.xyz>2024-02-26 07:07:26 -0700
commit64c0092d6c17c769b502bc60850f0a5c42792f3a (patch)
tree524ac3b38d343dad18b31cedfa97dd54f03e0cc8
parentd3e4af1f0a33849b36196b035fddf64037e0c282 (diff)
downloadvis-64c0092d6c17c769b502bc60850f0a5c42792f3a.tar.gz
vis-64c0092d6c17c769b502bc60850f0a5c42792f3a.tar.xz
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.
-rw-r--r--lua/plugins/filetype.lua6
1 files changed, 6 insertions, 0 deletions
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" },