diff options
author | nat-418 <93013864+nat-418@users.noreply.github.com> | 2024-04-08 22:23:22 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-08 22:23:22 +0200 |
commit | 196b6678c5483217ea5bc7d047b02c915615dae6 (patch) | |
tree | 315ea16beb836b0a72dec5d96aecd7b16df3fbc4 /runtime | |
parent | 72d81a66edd835aeff3f539ccd0f97afb1ebd63c (diff) |
patch 9.1.0279: filetype: roc files are not recognizedv9.1.0279
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>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | runtime/ftplugin/roc.vim | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 30996f794c..911ca1ee3a 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1888,6 +1888,9 @@ au BufNewFile,BufRead *.robot,*.resource setf robot " Robots.txt au BufNewFile,BufRead robots.txt setf robots +" Roc +au BufNewFile,BufRead *.roc setf roc + " RON (Rusty Object Notation) au BufNewFile,BufRead *.ron setf ron diff --git a/runtime/ftplugin/roc.vim b/runtime/ftplugin/roc.vim new file mode 100644 index 0000000000..c66510874d --- /dev/null +++ b/runtime/ftplugin/roc.vim @@ -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<" |