mirror of
https://github.com/scopatz/nanorc
synced 2025-06-29 09:40:14 +02:00
The commit mariuszs/nanorc@e5cc8be863 introduced a number of rc files that cause tabs to always show as red (even with trailing spaces). Adjust the behavior according to changes in https://github.com/nanorc/nanorc/blob/master/mixins/lint.nanorc, which seems to be an updated source of the original commit. Make tabs appear green without trailing characters, red with trailing spaces, and uncolored when followed by any other character.
17 lines
902 B
Plaintext
17 lines
902 B
Plaintext
syntax "glsl" "\.(frag|vert|fp|vp|glsl)$"
|
|
|
|
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
|
|
color black "[(]"
|
|
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)\>"
|
|
color green "\<gl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\>"
|
|
color cyan "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>"
|
|
color brightred "\<(break|continue)\>"
|
|
color brightcyan "\<(true|false)\>"
|
|
color red "[-+/*=<>?:!~%&|^]"
|
|
color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>"
|
|
color brightblack "(^|[[:space:]])//.*"
|
|
color brightblack start="/\*" end="\*/"
|
|
color brightwhite,cyan "TODO:?"
|
|
color ,green "[[:space:]]+$"
|
|
color ,red " + +| + +"
|