glsl.vim : Syntax File for the Desktop OpenGL Shading Language Version 4.6 GLSL GLSlang
| script karma
Downloaded by 62
Comments, bugs, improvements
script versions (upload new version)
|Richard Van Natta|
|Syntax file for the OpenGL Shading Language version 4.6. The following is highlighted (as defined in the Orange Book):
- All gl_ variables
- All built-in functions
- All keywords
This is an updated version of the top hit on duckduckgo and bing (script 1002), which hasn't been updated in 14 years.
The syntax file was modified from c.vim, so you can expect that your GLSL shaders will be highlighted similar to C files.
All reserved keywords (that GLSL currently does not use) are highlighted as errors. User labels are highlighted as errors.
Keywords: glsl glslang opengl shading language
|Place glsl.vim in your syntax directory:
cp glsl.vim ~/.vim/syntax/.
Enable highlighting with glsl.vim in your .vimrc with:
au BufNewFile,BufRead *.comp,*.frag,*.tese,*.tesc,*.geom,*.vert,*.glsl setf glsl
or explicitly set the syntax with:
Click on the package to download.
ip used for rating: 22.214.171.124