mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 09:49:02 -06:00
vim-patch:9.1.1935: filetype: not all Erlang files are recognized
Problem: filetype: not all Erlang files are recognized
Solution: Detect *.app.src and rebar.config files as erlang filetype
(John Parise).
*.app.src files contain Erlang application definitions. (There are also
*.app files, which are similar but more often build artifacts, and that
file extension is too ambiguous to be recognized by default.)
Reference:
- https://www.erlang.org/doc/system/applications.html
Rebar is the Erlang build tool. rebar.config uses Erlang syntax.
Reference:
- https://rebar3.org/docs/configuration/configuration/
closes: vim/vim#18835
https://github.com/vim/vim/commit/2b2580e61a853617173f907bd42e12a073cf2410
Co-authored-by: Jon Parise <jon@indelible.org>
This commit is contained in:
1 parent
23ddb2028b
commit
8310f20526
2 files changed
+3
-1
No files matched your search
@@ -1605,6 +1605,7 @@ local filename = {
|
|||||||
Earthfile = 'earthfile',
|
Earthfile = 'earthfile',
|
||||||
['.editorconfig'] = 'editorconfig',
|
['.editorconfig'] = 'editorconfig',
|
||||||
['elinks.conf'] = 'elinks',
|
['elinks.conf'] = 'elinks',
|
||||||
|
['rebar.config'] = 'erlang',
|
||||||
['mix.lock'] = 'elixir',
|
['mix.lock'] = 'elixir',
|
||||||
['filter-rules'] = 'elmfilt',
|
['filter-rules'] = 'elmfilt',
|
||||||
['exim.conf'] = 'exim',
|
['exim.conf'] = 'exim',
|
||||||
@@ -2631,6 +2632,7 @@ local pattern = {
|
|||||||
['^www%.conf'] = starsetf('dosini'),
|
['^www%.conf'] = starsetf('dosini'),
|
||||||
['^drac%.'] = starsetf('dracula'),
|
['^drac%.'] = starsetf('dracula'),
|
||||||
['/dtrace/.*%.d$'] = 'dtrace',
|
['/dtrace/.*%.d$'] = 'dtrace',
|
||||||
|
['%.app%.src$'] = 'erlang',
|
||||||
['esmtprc$'] = 'esmtprc',
|
['esmtprc$'] = 'esmtprc',
|
||||||
['/0%.orig/'] = starsetf(detect.foam),
|
['/0%.orig/'] = starsetf(detect.foam),
|
||||||
['/0/'] = starsetf(detect.foam),
|
['/0/'] = starsetf(detect.foam),
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'elsa': ['file.lc'],
|
\ 'elsa': ['file.lc'],
|
||||||
\ 'elvish': ['file.elv'],
|
\ 'elvish': ['file.elv'],
|
||||||
\ 'epuppet': ['file.epp'],
|
\ 'epuppet': ['file.epp'],
|
||||||
\ 'erlang': ['file.erl', 'file.hrl', 'file.yaws'],
|
\ 'erlang': ['file.erl', 'file.hrl', 'file.yaws', 'file.app.src', 'rebar.config'],
|
||||||
\ 'eruby': ['file.erb', 'file.rhtml'],
|
\ 'eruby': ['file.erb', 'file.rhtml'],
|
||||||
\ 'esdl': ['file.esdl'],
|
\ 'esdl': ['file.esdl'],
|
||||||
\ 'esmtprc': ['anyesmtprc', 'esmtprc', 'some-esmtprc'],
|
\ 'esmtprc': ['anyesmtprc', 'esmtprc', 'some-esmtprc'],
|
||||||
|
|||||||
Reference in new issue
Block a user