glsl.nanorc 882 B

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