mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 02:34:59 -07:00
vim-patch:9.1.0279: filetype: roc files are not recognized
Problem: filetype: roc files are not recognized
Solution: Detect '*.roc' files as roc filetype,
add a basic filetype plugin (nat-418)
closes: vim/vim#14416
196b6678c5
Co-authored-by: nat-418 <93013864+nat-418@users.noreply.github.com>
This commit is contained in:
parent
a663eb10bd
commit
bef4ad6507
14
runtime/ftplugin/roc.vim
Normal file
14
runtime/ftplugin/roc.vim
Normal file
@ -0,0 +1,14 @@
|
||||
" Roc filetype plugin file
|
||||
" Language: Roc
|
||||
" Maintainer: nat-418 <93013864+nat-418@users.noreply.github.com>
|
||||
" Latest Revision: 2024-04-5
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal comments=:##,:#
|
||||
setlocal commentstring=#\ %s
|
||||
|
||||
let b:undo_ftplugin = "setl com< cms<"
|
@ -887,6 +887,7 @@ local extension = {
|
||||
Snw = 'rnoweb',
|
||||
robot = 'robot',
|
||||
resource = 'robot',
|
||||
roc = 'roc',
|
||||
ron = 'ron',
|
||||
rsc = 'routeros',
|
||||
x = 'rpcgen',
|
||||
|
@ -567,6 +567,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'rpgle': ['file.rpgle', 'file.rpgleinc'],
|
||||
\ 'robot': ['file.robot', 'file.resource'],
|
||||
\ 'robots': ['robots.txt'],
|
||||
\ 'roc': ['file.roc'],
|
||||
\ 'ron': ['file.ron'],
|
||||
\ 'routeros': ['file.rsc'],
|
||||
\ 'rpcgen': ['file.x'],
|
||||
|
Loading…
Reference in New Issue
Block a user