Files
zyedidia.micro/runtime/syntax/glsl.micro
CaptainMcClellan c29e58e3d4 Syntax Highlight Overhaul (#568)
* Adds new syntax groups and docs
* Large refactor of syntax highlighting files

* Changed keybindings for changing tabs.

* Improved the documentation.

* Added F3 for find to default bindings.

* Massive overhaul of the syntax files

* Phase 1 color-scheme updates.

* The new colorschemes.

* Colorscheme and syntax updates.

* Tiny fix to the cmc theme.

* Another phase of colorschemes and testing gitconfig.

* Fixed haskell error

* Fortran fix

* Delete test.txt

Heh, sorry about forgetting to do this again.
2017-03-01 09:30:35 -05:00

16 lines
924 B
Plaintext

syntax "glsl" "\.(frag|vert|fp|vp|glsl)$"
color identifier.class "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
color type "\<(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\>"
color identifier "\<gl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\>"
color statement "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>"
color special "\<(break|continue)\>"
color constant.bool "\<(true|false)\>"
color symbol.operator "[-+/*=<>?:!~%&|^]"
color constant.number "\<([0-9]+|0x[0-9a-fA-F]*)\>"
color comment "(^|[[:space:]])//.*"
color comment start="/\*" end="\*/"
color todo "TODO:?"
color indent-char.whitespace "[[:space:]]+$"
color indent-char " + +| + +"