mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
vim-patch:9.1.0919: filetype: some assembler files are not recognized
Problem: filetype: some assembler are files not recognized
Solution: detect '*.nasm' files as nasm filetype and '*.masm' as masm
filetype (Wu, Zhenyu)
closes: vim/vim#16194
d66d68763d
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
parent
17383870dd
commit
2e73ba102a
@ -414,12 +414,15 @@ There are many types of assembly languages that all use the same file name
|
|||||||
extensions. Therefore you will have to select the type yourself, or add a
|
extensions. Therefore you will have to select the type yourself, or add a
|
||||||
line in the assembly file that Vim will recognize. Currently these syntax
|
line in the assembly file that Vim will recognize. Currently these syntax
|
||||||
files are included:
|
files are included:
|
||||||
asm GNU assembly (the default)
|
asm GNU assembly (usually have .s or .S extension and were
|
||||||
|
already built using C compiler such as GCC or CLANG)
|
||||||
asm68k Motorola 680x0 assembly
|
asm68k Motorola 680x0 assembly
|
||||||
asmh8300 Hitachi H-8300 version of GNU assembly
|
asmh8300 Hitachi H-8300 version of GNU assembly
|
||||||
ia64 Intel Itanium 64
|
ia64 Intel Itanium 64
|
||||||
fasm Flat assembly (https://flatassembler.net)
|
fasm Flat assembly (https://flatassembler.net)
|
||||||
masm Microsoft assembly (probably works for any 80x86)
|
masm Microsoft assembly (.masm files are compiled with
|
||||||
|
Microsoft's Macro Assembler. This is only supported
|
||||||
|
for x86, x86_64, ARM and AARCH64 CPU families)
|
||||||
nasm Netwide assembly
|
nasm Netwide assembly
|
||||||
tasm Turbo Assembly (with opcodes 80x86 up to Pentium, and
|
tasm Turbo Assembly (with opcodes 80x86 up to Pentium, and
|
||||||
MMX)
|
MMX)
|
||||||
|
@ -743,6 +743,7 @@ local extension = {
|
|||||||
mkd = detect.markdown,
|
mkd = detect.markdown,
|
||||||
markdown = detect.markdown,
|
markdown = detect.markdown,
|
||||||
mdown = detect.markdown,
|
mdown = detect.markdown,
|
||||||
|
masm = 'masm',
|
||||||
mhtml = 'mason',
|
mhtml = 'mason',
|
||||||
mason = 'mason',
|
mason = 'mason',
|
||||||
master = 'master',
|
master = 'master',
|
||||||
@ -805,6 +806,7 @@ local extension = {
|
|||||||
n1ql = 'n1ql',
|
n1ql = 'n1ql',
|
||||||
nql = 'n1ql',
|
nql = 'n1ql',
|
||||||
nanorc = 'nanorc',
|
nanorc = 'nanorc',
|
||||||
|
nasm = 'nasm',
|
||||||
NSA = 'natural',
|
NSA = 'natural',
|
||||||
NSC = 'natural',
|
NSC = 'natural',
|
||||||
NSG = 'natural',
|
NSG = 'natural',
|
||||||
|
@ -114,6 +114,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'arduino': ['file.ino', 'file.pde'],
|
\ 'arduino': ['file.ino', 'file.pde'],
|
||||||
\ 'art': ['file.art'],
|
\ 'art': ['file.art'],
|
||||||
\ 'asciidoc': ['file.asciidoc', 'file.adoc'],
|
\ 'asciidoc': ['file.asciidoc', 'file.adoc'],
|
||||||
|
\ 'asm': ['file.s', 'file.S', 'file.a', 'file.A'],
|
||||||
\ 'asn': ['file.asn', 'file.asn1'],
|
\ 'asn': ['file.asn', 'file.asn1'],
|
||||||
\ 'asterisk': ['asterisk/file.conf', 'asterisk/file.conf-file', 'some-asterisk/file.conf', 'some-asterisk/file.conf-file'],
|
\ 'asterisk': ['asterisk/file.conf', 'asterisk/file.conf-file', 'some-asterisk/file.conf', 'some-asterisk/file.conf-file'],
|
||||||
\ 'astro': ['file.astro'],
|
\ 'astro': ['file.astro'],
|
||||||
@ -453,6 +454,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'map': ['file.map'],
|
\ 'map': ['file.map'],
|
||||||
\ 'maple': ['file.mv', 'file.mpl', 'file.mws'],
|
\ 'maple': ['file.mv', 'file.mpl', 'file.mws'],
|
||||||
\ 'markdown': ['file.markdown', 'file.mdown', 'file.mkd', 'file.mkdn', 'file.mdwn', 'file.md'],
|
\ 'markdown': ['file.markdown', 'file.mdown', 'file.mkd', 'file.mkdn', 'file.mdwn', 'file.md'],
|
||||||
|
\ 'masm': ['file.masm'],
|
||||||
\ 'mason': ['file.mason', 'file.mhtml'],
|
\ 'mason': ['file.mason', 'file.mhtml'],
|
||||||
\ 'master': ['file.mas', 'file.master'],
|
\ 'master': ['file.mas', 'file.master'],
|
||||||
\ 'matlab': ['file.m'],
|
\ 'matlab': ['file.m'],
|
||||||
@ -529,6 +531,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'n1ql': ['file.n1ql', 'file.nql'],
|
\ 'n1ql': ['file.n1ql', 'file.nql'],
|
||||||
\ 'named': ['namedfile.conf', 'rndcfile.conf', 'named-file.conf', 'named.conf', 'rndc-file.conf', 'rndc-file.key', 'rndc.conf', 'rndc.key'],
|
\ 'named': ['namedfile.conf', 'rndcfile.conf', 'named-file.conf', 'named.conf', 'rndc-file.conf', 'rndc-file.key', 'rndc.conf', 'rndc.key'],
|
||||||
\ 'nanorc': ['/etc/nanorc', 'file.nanorc', 'any/etc/nanorc'],
|
\ 'nanorc': ['/etc/nanorc', 'file.nanorc', 'any/etc/nanorc'],
|
||||||
|
\ 'nasm': ['file.nasm'],
|
||||||
\ 'natural': ['file.NSA', 'file.NSC', 'file.NSG', 'file.NSL', 'file.NSM', 'file.NSN', 'file.NSP', 'file.NSS'],
|
\ 'natural': ['file.NSA', 'file.NSC', 'file.NSG', 'file.NSL', 'file.NSM', 'file.NSN', 'file.NSP', 'file.NSS'],
|
||||||
\ 'ncf': ['file.ncf'],
|
\ 'ncf': ['file.ncf'],
|
||||||
\ 'neomuttlog': ['/home/user/.neomuttdebug1'],
|
\ 'neomuttlog': ['/home/user/.neomuttdebug1'],
|
||||||
|
Loading…
Reference in New Issue
Block a user