]> git.lizzy.rs Git - micro.git/blob - syntax_files/glsl.micro
Proper window resize handling
[micro.git] / syntax_files / glsl.micro
1 syntax "GLSL" "\.(frag|vert|fp|vp|glsl)$"
2
3 color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
4 color green     "\b(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\b"
5 color green     "\bgl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\b"
6 color cyan  "\b(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\b"
7 color brightred     "\b(break|continue)\b"
8 color brightcyan "\b(true|false)\b"
9 color red "[-+/*=<>?:!~%&|^]"
10 color blue   "\b([0-9]+|0x[0-9a-fA-F]*)\b"
11 color brightblack "(^|[[:space:]])//.*"
12 color brightblack (s) "/\*.*?\*/"
13 color brightwhite,cyan "TODO:?"
14 color ,green "[[:space:]]+$"
15 color ,red "    + +| +  +"