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

9360de9027

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Christian Clason
2024-12-25 11:44:46 +01:00
committed by Christian Clason
parent 01e1598072
commit 7567f7d322
4 changed files with 34 additions and 0 deletions

13
runtime/ftplugin/gel.vim Normal file
View File

@@ -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<"