aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-12-25 11:44:46 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-12-25 13:38:45 +0100
commit7567f7d3226ab247eb2b743460492c1101045b0e (patch)
treef4ad2fef942f0c3c21a0d162d22ba1a43ae8d700 /runtime/ftplugin
parent01e1598072249011ac2cec7318559cea6179e509 (diff)
downloadrneovim-7567f7d3226ab247eb2b743460492c1101045b0e.tar.gz
rneovim-7567f7d3226ab247eb2b743460492c1101045b0e.tar.bz2
rneovim-7567f7d3226ab247eb2b743460492c1101045b0e.zip
vim-patch:9.1.0961: filetype: TI gel files are not recognized
Problem: filetype: TI gel files are not recognized Solution: detect '*.gel' files as gel filetype, include get filetype and syntax plugins (Wu, Zhenyu) References: https://downloads.ti.com/ccs/esd/documents/users_guide/ccs_debug-gel.html closes: vim/vim#16226 https://github.com/vim/vim/commit/9360de9027aa286e802363ede59c9e97025ae123 Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/gel.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/ftplugin/gel.vim b/runtime/ftplugin/gel.vim
new file mode 100644
index 0000000000..b1f4def2b8
--- /dev/null
+++ b/runtime/ftplugin/gel.vim
@@ -0,0 +1,13 @@
+" Vim filetype plugin file
+" Language: TI Code Composer Studio General Extension Language
+" Document: https://downloads.ti.com/ccs/esd/documents/users_guide/ccs_debug-gel.html
+" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
+" Last Change: 2024 Dec 25
+
+if exists("b:did_ftplugin") | finish | endif
+let b:did_ftplugin = 1
+
+setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
+setlocal commentstring=/*\ %s\ */
+
+let b:undo_ftplugin = "setl commentstring< comments<"