]> git.feebdaed.xyz Git - 0xmirror/vim.git/commit
patch 9.1.1936: filetype: Erlang lexical files are not recognized
authorJon Parise <jon@indelible.org>
Sun, 30 Nov 2025 14:45:48 +0000 (14:45 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 30 Nov 2025 14:45:48 +0000 (14:45 +0000)
commitb087c5452b4c12bfc9e7f6cecbee34aab64c92d8
tree82798ca56c5a3ce585c20f7c161509e78e0c56db
parent2b2580e61a853617173f907bd42e12a073cf2410
patch 9.1.1936: filetype: Erlang lexical files are not recognized

Problem:  filetype: Erlang lexical files are not recognized
Solution: Detect *.xrl files as leex filetype, include syntax and
          filetype plugins (Jon Parise).

leex is the lexical analyzer generator for Erlang. Its input file format
follows a section-based structure and uses the `.xrl` file extension.

This initial work includes file detection, an ftplugin (which inherits
the Erlang configuration), and a syntax definition.

Reference:
-  https://www.erlang.org/doc/apps/parsetools/leex.html

related: #18819
closes: #18832

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Csaba Hoch <csaba.hoch@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/MAINTAINERS
runtime/autoload/dist/ft.vim
runtime/ftplugin/leex.vim [new file with mode: 0644]
runtime/syntax/leex.vim [new file with mode: 0644]
runtime/syntax/testdir/dumps/leex_00.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/leex_01.dump [new file with mode: 0644]
runtime/syntax/testdir/input/leex.xrl [new file with mode: 0644]
src/testdir/test_filetype.vim
src/version.c