Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
gdshader.vim58 linesDownload Raw Back to syntax
1" Vim syntax file for Godot shading language2" Language:     gdshader3" Maintainer:   Maxim Kim <habamax@gmail.com>4" Filenames:    *.gdshader5 6if exists("b:current_syntax")7    finish8endif9 10syn keyword gdshaderConditional if else switch case default11syn keyword gdshaderRepeat for while do12syn keyword gdshaderStatement return discard13syn keyword gdshaderBoolean true false14 15syn keyword gdshaderKeyword shader_type render_mode16syn keyword gdshaderKeyword in out inout17syn keyword gdshaderKeyword lowp mediump highp18syn keyword gdshaderKeyword uniform varying const19syn keyword gdshaderKeyword flat smooth20 21syn keyword gdshaderType float vec2 vec3 vec422syn keyword gdshaderType uint uvec2 uvec3 uvec423syn keyword gdshaderType int ivec2 ivec3 ivec424syn keyword gdshaderType void bool25syn keyword gdshaderType bvec2 bvec3 bvec426syn keyword gdshaderType mat2 mat3 mat427syn keyword gdshaderType sampler2D isampler2D usampler2D samplerCube28 29syn match gdshaderMember "\v<(\.)@<=[a-z_]+\w*>"30syn match gdshaderBuiltin "\v<[A-Z_]+[A-Z0-9_]*>"31syn match gdshaderFunction "\v<\w*>(\()@="32 33syn match gdshaderNumber "\v<\d+(\.)@!>"34syn match gdshaderFloat "\v<\d*\.\d+(\.)@!>"35syn match gdshaderFloat "\v<\d*\.=\d+(e-=\d+)@="36syn match gdshaderExponent "\v(\d*\.=\d+)@<=e-=\d+>"37 38syn match gdshaderComment "\v//.*$" contains=@Spell39syn region gdshaderComment start="/\*" end="\*/" contains=@Spell40syn keyword gdshaderTodo TODO FIXME XXX NOTE BUG HACK OPTIMIZE containedin=gdshaderComment41 42hi def link gdshaderConditional Conditional43hi def link gdshaderRepeat Repeat44hi def link gdshaderStatement Statement45hi def link gdshaderBoolean Boolean46hi def link gdshaderKeyword Keyword47hi def link gdshaderMember Identifier48hi def link gdshaderBuiltin Identifier49hi def link gdshaderFunction Function50hi def link gdshaderType Type51hi def link gdshaderNumber Number52hi def link gdshaderFloat Float53hi def link gdshaderExponent Special54hi def link gdshaderComment Comment55hi def link gdshaderTodo Todo56 57let b:current_syntax = "gdshader"58 
codekingpro/portable-devtools · Team Ai