diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-11-19 22:33:30 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-20 09:31:15 +0100 |
commit | 23ead4f2cb19b05d83f1c515b35bd5896ee77365 (patch) | |
tree | 4da1c530e49d60f817c25d76d8eb8ffc35e8bbc0 /runtime/syntax | |
parent | 4c85c217d384c79013401f09b329467c53c8a01c (diff) | |
download | rneovim-23ead4f2cb19b05d83f1c515b35bd5896ee77365.tar.gz rneovim-23ead4f2cb19b05d83f1c515b35bd5896ee77365.tar.bz2 rneovim-23ead4f2cb19b05d83f1c515b35bd5896ee77365.zip |
vim-patch:9.1.0876: filetype: openCL files are not recognized
Problem: filetype: openCL files are not recognized
Solution: detect '*.cl' files as opencl or lisp filetype,
include a opencl syntax and filetype plugin (Wu, Zhenyu)
closes: vim/vim#15825
https://github.com/vim/vim/commit/e2c27ca8eff7cc8ec852b531d5a7f328a343a761
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/opencl.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/syntax/opencl.vim b/runtime/syntax/opencl.vim new file mode 100644 index 0000000000..c237aa30f9 --- /dev/null +++ b/runtime/syntax/opencl.vim @@ -0,0 +1,13 @@ +" Vim syntax file +" Language: OpenCL +" Last Change: 2024 Nov 19 +" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu> + +if exists("b:current_syntax") + finish +endif + +" TODO: support openCL specific keywords +runtime! syntax/c.vim + +let current_syntax = "opencl" |