mirror of
https://github.com/vim/vim
synced 2025-03-15 14:27:53 +01:00
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: #15825 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
12 lines
362 B
VimL
12 lines
362 B
VimL
" Vim filetype plugin file
|
|
" Language: OpenCL
|
|
" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
|
|
" Last Change: 2024 Nov 19
|
|
|
|
if exists("b:did_ftplugin") | finish | endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
|
|
setlocal commentstring=/*\ %s\ */ define& include&
|
|
|
|
let b:undo_ftplugin = "setl commentstring< comments<"
|