mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-11 15:12:47 +09:00
Legacy syntax overhaul 2 (#577)
* 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
This commit is contained in:
committed by
Zachary Yedidia
parent
ab74e56a40
commit
d949b58fc0
@@ -3,10 +3,10 @@ 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|return|discard|while|for|do)\b"
|
||||
color special "\b(break|continue)\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 symbol.operator "[\-+/*=<>?:!~%&|^]"
|
||||
color constant.number "\b([0-9]+|0x[0-9a-fA-F]*)\b"
|
||||
color comment "(^|[[:space:]])//.*"
|
||||
color comment start="/\*" end="\*/"
|
||||
|
||||
Reference in New Issue
Block a user