mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
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: #14416 Signed-off-by: nat-418 <93013864+nat-418@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
72d81a66ed
commit
196b6678c5
@ -1888,6 +1888,9 @@ au BufNewFile,BufRead *.robot,*.resource setf robot
|
|||||||
" Robots.txt
|
" Robots.txt
|
||||||
au BufNewFile,BufRead robots.txt setf robots
|
au BufNewFile,BufRead robots.txt setf robots
|
||||||
|
|
||||||
|
" Roc
|
||||||
|
au BufNewFile,BufRead *.roc setf roc
|
||||||
|
|
||||||
" RON (Rusty Object Notation)
|
" RON (Rusty Object Notation)
|
||||||
au BufNewFile,BufRead *.ron setf ron
|
au BufNewFile,BufRead *.ron setf ron
|
||||||
|
|
||||||
|
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<"
|
@ -597,6 +597,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
rpgle: ['file.rpgle', 'file.rpgleinc'],
|
rpgle: ['file.rpgle', 'file.rpgleinc'],
|
||||||
robot: ['file.robot', 'file.resource'],
|
robot: ['file.robot', 'file.resource'],
|
||||||
robots: ['robots.txt'],
|
robots: ['robots.txt'],
|
||||||
|
roc: ['file.roc'],
|
||||||
ron: ['file.ron'],
|
ron: ['file.ron'],
|
||||||
routeros: ['file.rsc'],
|
routeros: ['file.rsc'],
|
||||||
rpcgen: ['file.x'],
|
rpcgen: ['file.x'],
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
279,
|
||||||
/**/
|
/**/
|
||||||
278,
|
278,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user