mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-11 01:20:23 +09:00
* Added title setting (Requires tcell pull!) and optimized tab display. * Added Clojure highlighting. * Changed tcell call to screen. * Fixed bad reference for getting Buffer name. * Yet another massive syntax overhaul * Tweaking and testing web syntax * More webdev goodies * Added html5 highlighting and strict html4 highlighting. * Documentation update
16 lines
925 B
Plaintext
16 lines
925 B
Plaintext
syntax "glsl" "\.(frag|vert|fp|vp|glsl)$"
|
|
|
|
color identifier.class "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
|
|
color type "\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"
|
|
color identifier "\bgl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\b"
|
|
color statement "\b(const|attribute|varying|uniform|in|out|inout|if|else|discard|while|for|do)\b"
|
|
color special "\b(break|continue|return)\b"
|
|
color constant.bool "\b(true|false)\b"
|
|
color symbol.operator "[\-+/*=<>?:!~%&|^]"
|
|
color constant.number "\b([0-9]+|0x[0-9a-fA-F]*)\b"
|
|
color comment "(^|[[:space:]])//.*"
|
|
color comment start="/\*" end="\*/"
|
|
color todo "TODO:?"
|
|
color indent-char.whitespace "[[:space:]]+$"
|
|
color indent-char " + +| + +"
|