diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2024-07-16 22:29:39 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-17 11:11:58 +0200 |
| commit | 8e590cae83c321445a598fcd87bb31b6187402f7 (patch) | |
| tree | 8e0ec725fb39af98cd1d322d30d6c3cbc8fae910 /runtime/ftplugin | |
| parent | 498d9beed9117ce7b70add99ee6f1107ef9e7662 (diff) | |
| download | rneovim-8e590cae83c321445a598fcd87bb31b6187402f7.tar.gz rneovim-8e590cae83c321445a598fcd87bb31b6187402f7.tar.bz2 rneovim-8e590cae83c321445a598fcd87bb31b6187402f7.zip | |
vim-patch:9.1.0593: filetype: Asymptote files are not recognized
Problem: filetype: Asymptote files are not recognized
Solution: detect '*.asy' files as asy filetype, include
ftplugin and syntax plugin (AvidSeeker).
Reference: https://asymptote.sourceforge.io/
closes: vim/vim#15252
https://github.com/vim/vim/commit/3088ef094da721dac8c0363a6c9e14eaf9313929
Co-authored-by: AvidSeeker <avidseeker7@protonmail.com>
Diffstat (limited to 'runtime/ftplugin')
| -rw-r--r-- | runtime/ftplugin/asy.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/ftplugin/asy.vim b/runtime/ftplugin/asy.vim new file mode 100644 index 0000000000..76bd69d202 --- /dev/null +++ b/runtime/ftplugin/asy.vim @@ -0,0 +1,14 @@ +" Vim filetype plugin +" Language: Asymptote +" Maintainer: AvidSeeker <avidseeker7@protonmail.com> +" Last Change: 2024 Jul 13 +" + +if exists("b:did_ftplugin") + finish +endif +let g:did_ftplugin = 1 + +setlocal commentstring=/*\ %s\ */ + +let b:undo_ftplugin = "setl commentstring<" |