mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00: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: vim/vim#15825
e2c27ca8ef
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			362 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
			
		
		
	
	
			13 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<"
 |