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: #15825

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Wu, Zhenyu
2024-11-19 20:55:25 +01:00
committed by Christian Brabandt
parent a13bd294ab
commit e2c27ca8ef
7 changed files with 60 additions and 4 deletions

13
runtime/syntax/opencl.vim Normal file
View File

@ -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"