aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-12-31 11:53:02 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-12-31 12:29:35 +0100
commit1877cd5fcdc0bbe5f3d0685d42d4e295fb819724 (patch)
treeb0171f103d6e42e5c71cf1b688565e7dd56f9273 /runtime/ftplugin
parent7ecd348b3da3bd27a0dd8db07896bf17a86bb26c (diff)
downloadrneovim-1877cd5fcdc0bbe5f3d0685d42d4e295fb819724.tar.gz
rneovim-1877cd5fcdc0bbe5f3d0685d42d4e295fb819724.tar.bz2
rneovim-1877cd5fcdc0bbe5f3d0685d42d4e295fb819724.zip
vim-patch:9.1.0982: TI linker files are not recognized
Problem: TI linker files are not recognized Solution: inspect '*.cmd' files and detect TI linker files as 'lnk' filetype, include a lnk ftplugin and syntax script (Wu, Zhenyu) closes: vim/vim#16320 https://github.com/vim/vim/commit/39a4eb0b2ca901b59800fad086550053556e59dc Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/lnk.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/ftplugin/lnk.vim b/runtime/ftplugin/lnk.vim
new file mode 100644
index 0000000000..8b280d9836
--- /dev/null
+++ b/runtime/ftplugin/lnk.vim
@@ -0,0 +1,14 @@
+" Vim filetype plugin file
+" Language: TI linker command file
+" Document: https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html
+" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
+" Last Change: 2024 Dec 31
+
+if exists("b:did_ftplugin") | finish | endif
+let b:did_ftplugin = 1
+
+setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
+setlocal commentstring=/*\ %s\ */
+setlocal iskeyword+=.
+
+let b:undo_ftplugin = "setl commentstring< comments< iskeyword<"