~martanne/devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
3 3

[PATCH vis] Introduce new `modula2` and `modula3` file types.

Details
Message ID
<20240221183157.12180-1-mcepl@cepl.eu>
DKIM signature
missing
Download raw message
Patch: +6 -0
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(+)

diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index 52d53024..894b71c1 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" },
-- 
2.43.1

[vis/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CZAZ18H2SZCI.3D8PA66I01U5I@fra02>
In-Reply-To
<20240221183157.12180-1-mcepl@cepl.eu> (view parent)
DKIM signature
missing
Download raw message
vis/patches: SUCCESS in 1m37s

[Introduce new `modula2` and `modula3` file types.][0] from [Matěj Cepl][1]

[0]: https://lists.sr.ht/~martanne/devel/patches/49729
[1]: mcepl@cepl.eu

✓ #1155097 SUCCESS vis/patches/debian.yml  https://builds.sr.ht/~martanne/job/1155097
✓ #1155096 SUCCESS vis/patches/alpine.yml  https://builds.sr.ht/~martanne/job/1155096
✓ #1155099 SUCCESS vis/patches/openbsd.yml https://builds.sr.ht/~martanne/job/1155099
✓ #1155098 SUCCESS vis/patches/freebsd.yml https://builds.sr.ht/~martanne/job/1155098
Silvan Jegen <s.jegen@gmail.com>
Details
Message ID
<2JB4KB4DUUT3E.2XFRUN74HECXK@homearch.localdomain>
In-Reply-To
<20240221183157.12180-1-mcepl@cepl.eu> (view parent)
DKIM signature
pass
Download raw message
Matěj Cepl <mcepl@cepl.eu> wrote:
> 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(+)

LGTM!

Cheers,
Silvan

> 
> diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
> index 52d53024..894b71c1 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" },
Details
Message ID
<3B5E815XSYVG7.3KDC41S08XH3G@rnpnr.xyz>
In-Reply-To
<20240221183157.12180-1-mcepl@cepl.eu> (view parent)
DKIM signature
permerror
Download raw message
Matěj Cepl <mcepl@cepl.eu> wrote:
> 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(+)

Applied, Thanks for the patch!

-- 
https://rnpnr.xyz/
GPG Fingerprint: B8F0 CF4C B6E9 415C 1B27 A8C4 C8D2 F782 86DF 2DC5

> 
> diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
> index 52d53024..894b71c1 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" },
Reply to thread Export thread (mbox)