mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +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>
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			250 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			250 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
" 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"
 |