mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 08:27:19 -04:00
Added a lot more syntax files (#3)
* Added ct, git, glsl, json, pascal, sol, and text * ct * \n * Added dart, keymap, lily, mail, ocaml, r, and rest
This commit is contained in:
committed by
Zachary Yedidia
parent
d6d0b44fa5
commit
4193133ce4
@@ -0,0 +1,22 @@
|
||||
filetype: glsl
|
||||
|
||||
detect:
|
||||
filename: "\\.(frag|vert|fp|vp|glsl)$"
|
||||
|
||||
rules:
|
||||
- brightblue: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
|
||||
- green: "\\<(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\\>"
|
||||
- green: "\\<gl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\\>"
|
||||
- cyan: "\\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\\>"
|
||||
- brightred: "\\<(break|continue)\\>"
|
||||
- brightcyan: "\\<(true|false)\\>"
|
||||
- red: "[-+/*=<>?:!~%&|^]"
|
||||
- blue: "\\<([0-9]+|0x[0-9a-fA-F]*)\\>"
|
||||
- brightblack: "(^|[[:space:]])//.*"
|
||||
- brightblack:
|
||||
start: "/\\*"
|
||||
end: "\\*/"
|
||||
rules: []
|
||||
- brightwhite,cyan: "TODO:?"
|
||||
- ,green: "[[:space:]]+$"
|
||||
- ,red: " + +| + +"
|
||||
Reference in New Issue
Block a user