summaryrefslogtreecommitdiff
path: root/keywords.h
diff options
context:
space:
mode:
Diffstat (limited to 'keywords.h')
-rw-r--r--keywords.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/keywords.h b/keywords.h
index cb0e438..82bab7e 100644
--- a/keywords.h
+++ b/keywords.h
@@ -343,3 +343,28 @@ static const KeywordList syntax_all_keywords_config[128] = {
['f'] = {syntax_keywords_config_f, arr_count(syntax_keywords_config_f)}, ['n'] = {syntax_keywords_config_n, arr_count(syntax_keywords_config_n)}, ['o'] = {syntax_keywords_config_o, arr_count(syntax_keywords_config_o)}, ['t'] = {syntax_keywords_config_t, arr_count(syntax_keywords_config_t)}, ['y'] = {syntax_keywords_config_y, arr_count(syntax_keywords_config_y)}
};
+static const Keyword syntax_keywords_glsl_E[4] = {{"EmitStreamVertex", SYNTAX_BUILTIN},{"EmitVertex", SYNTAX_BUILTIN},{"EndPrimitive", SYNTAX_BUILTIN},{"EndStreamPrimitive", SYNTAX_BUILTIN}};
+static const Keyword syntax_keywords_glsl_a[22] = {{"abs", SYNTAX_BUILTIN},{"acos", SYNTAX_BUILTIN},{"acosh", SYNTAX_BUILTIN},{"all", SYNTAX_BUILTIN},{"any", SYNTAX_BUILTIN},{"asin", SYNTAX_BUILTIN},{"asinh", SYNTAX_BUILTIN},{"atan", SYNTAX_BUILTIN},{"atanh", SYNTAX_BUILTIN},{"atomicAdd", SYNTAX_BUILTIN},{"atomicAnd", SYNTAX_BUILTIN},{"atomicCompSwap", SYNTAX_BUILTIN},{"atomicCounter", SYNTAX_BUILTIN},{"atomicCounterDecrement", SYNTAX_BUILTIN},{"atomicCounterIncrement", SYNTAX_BUILTIN},{"atomicExchange", SYNTAX_BUILTIN},{"atomicMax", SYNTAX_BUILTIN},{"atomicMin", SYNTAX_BUILTIN},{"atomicOr", SYNTAX_BUILTIN},{"atomicXor", SYNTAX_BUILTIN},{"atomic_uint", SYNTAX_KEYWORD},{"attribute", SYNTAX_KEYWORD}};
+static const Keyword syntax_keywords_glsl_b[11] = {{"barrier", SYNTAX_BUILTIN},{"bitCount", SYNTAX_BUILTIN},{"bitfieldExtract", SYNTAX_BUILTIN},{"bitfieldInsert", SYNTAX_BUILTIN},{"bitfieldReverse", SYNTAX_BUILTIN},{"bool", SYNTAX_KEYWORD},{"break", SYNTAX_KEYWORD},{"buffer", SYNTAX_KEYWORD},{"bvec2", SYNTAX_KEYWORD},{"bvec3", SYNTAX_KEYWORD},{"bvec4", SYNTAX_KEYWORD}};
+static const Keyword syntax_keywords_glsl_c[10] = {{"case", SYNTAX_KEYWORD},{"ceil", SYNTAX_BUILTIN},{"centroid", SYNTAX_KEYWORD},{"clamp", SYNTAX_BUILTIN},{"coherent", SYNTAX_KEYWORD},{"const", SYNTAX_KEYWORD},{"continue", SYNTAX_KEYWORD},{"cos", SYNTAX_BUILTIN},{"cosh", SYNTAX_BUILTIN},{"cross", SYNTAX_BUILTIN}};
+static const Keyword syntax_keywords_glsl_d[29] = {{"dFdx", SYNTAX_BUILTIN},{"dFdxCoarse", SYNTAX_BUILTIN},{"dFdxFine", SYNTAX_BUILTIN},{"dFdy", SYNTAX_BUILTIN},{"dFdyCoarse", SYNTAX_BUILTIN},{"dFdyFine", SYNTAX_BUILTIN},{"default", SYNTAX_KEYWORD},{"degrees", SYNTAX_BUILTIN},{"determinant", SYNTAX_BUILTIN},{"discard", SYNTAX_KEYWORD},{"distance", SYNTAX_BUILTIN},{"dmat2", SYNTAX_KEYWORD},{"dmat2x2", SYNTAX_KEYWORD},{"dmat2x3", SYNTAX_KEYWORD},{"dmat2x4", SYNTAX_KEYWORD},{"dmat3", SYNTAX_KEYWORD},{"dmat3x2", SYNTAX_KEYWORD},{"dmat3x3", SYNTAX_KEYWORD},{"dmat3x4", SYNTAX_KEYWORD},{"dmat4", SYNTAX_KEYWORD},{"dmat4x2", SYNTAX_KEYWORD},{"dmat4x3", SYNTAX_KEYWORD},{"dmat4x4", SYNTAX_KEYWORD},{"do", SYNTAX_KEYWORD},{"dot", SYNTAX_BUILTIN},{"double", SYNTAX_KEYWORD},{"dvec2", SYNTAX_KEYWORD},{"dvec3", SYNTAX_KEYWORD},{"dvec4", SYNTAX_KEYWORD}};
+static const Keyword syntax_keywords_glsl_e[4] = {{"else", SYNTAX_KEYWORD},{"equal", SYNTAX_BUILTIN},{"exp", SYNTAX_BUILTIN},{"exp2", SYNTAX_BUILTIN}};
+static const Keyword syntax_keywords_glsl_f[16] = {{"faceforward", SYNTAX_BUILTIN},{"false", SYNTAX_KEYWORD},{"findLSB", SYNTAX_BUILTIN},{"findMSB", SYNTAX_BUILTIN},{"flat", SYNTAX_KEYWORD},{"float", SYNTAX_KEYWORD},{"floatBitsToInt", SYNTAX_BUILTIN},{"floatBitsToUint", SYNTAX_BUILTIN},{"floor", SYNTAX_BUILTIN},{"fma", SYNTAX_BUILTIN},{"for", SYNTAX_KEYWORD},{"fract", SYNTAX_BUILTIN},{"frexp", SYNTAX_BUILTIN},{"fwidth", SYNTAX_BUILTIN},{"fwidthCoarse", SYNTAX_BUILTIN},{"fwidthFine", SYNTAX_BUILTIN}};
+static const Keyword syntax_keywords_glsl_g[34] = {{"gl_ClipDistance", SYNTAX_BUILTIN},{"gl_CullDistance", SYNTAX_BUILTIN},{"gl_FragCoord", SYNTAX_BUILTIN},{"gl_FragDepth", SYNTAX_BUILTIN},{"gl_FrontFacing", SYNTAX_BUILTIN},{"gl_GlobalInvocationID", SYNTAX_BUILTIN},{"gl_HelperInvocation", SYNTAX_BUILTIN},{"gl_InstanceID", SYNTAX_BUILTIN},{"gl_InvocationID", SYNTAX_BUILTIN},{"gl_Layer", SYNTAX_BUILTIN},{"gl_LocalInvocationID", SYNTAX_BUILTIN},{"gl_LocalInvocationIndex", SYNTAX_BUILTIN},{"gl_NumSamples", SYNTAX_BUILTIN},{"gl_NumWorkGroups", SYNTAX_BUILTIN},{"gl_PatchVerticesIn", SYNTAX_BUILTIN},{"gl_PointCoord", SYNTAX_BUILTIN},{"gl_PointSize", SYNTAX_BUILTIN},{"gl_Position", SYNTAX_BUILTIN},{"gl_PrimitiveID", SYNTAX_BUILTIN},{"gl_PrimitiveIDIn", SYNTAX_BUILTIN},{"gl_SampleID", SYNTAX_BUILTIN},{"gl_SampleMask", SYNTAX_BUILTIN},{"gl_SampleMaskIn", SYNTAX_BUILTIN},{"gl_SamplePosition", SYNTAX_BUILTIN},{"gl_TessCoord", SYNTAX_BUILTIN},{"gl_TessLevelInner", SYNTAX_BUILTIN},{"gl_TessLevelOuter", SYNTAX_BUILTIN},{"gl_VertexID", SYNTAX_BUILTIN},{"gl_ViewportIndex", SYNTAX_BUILTIN},{"gl_WorkGroupID", SYNTAX_BUILTIN},{"gl_WorkGroupSize", SYNTAX_BUILTIN},{"greaterThan", SYNTAX_BUILTIN},{"greaterThanEqual", SYNTAX_BUILTIN},{"groupMemoryBarrier", SYNTAX_BUILTIN}};
+static const Keyword syntax_keywords_glsl_h[1] = {{"highp", SYNTAX_KEYWORD}};
+static const Keyword syntax_keywords_glsl_i[62] = {{"if", SYNTAX_KEYWORD},{"iimage1D", SYNTAX_KEYWORD},{"iimage1DArray", SYNTAX_KEYWORD},{"iimage2D", SYNTAX_KEYWORD},{"iimage2DArray", SYNTAX_KEYWORD},{"iimage2DMS", SYNTAX_KEYWORD},{"iimage2DMSArray", SYNTAX_KEYWORD},{"iimage2DRect", SYNTAX_KEYWORD},{"iimage3D", SYNTAX_KEYWORD},{"iimageBuffer", SYNTAX_KEYWORD},{"iimageCube", SYNTAX_KEYWORD},{"iimageCubeArray", SYNTAX_KEYWORD},{"image1D", SYNTAX_KEYWORD},{"image1DArray", SYNTAX_KEYWORD},{"image2D", SYNTAX_KEYWORD},{"image2DArray", SYNTAX_KEYWORD},{"image2DMS", SYNTAX_KEYWORD},{"image2DMSArray", SYNTAX_KEYWORD},{"image2DRect", SYNTAX_KEYWORD},{"image3D", SYNTAX_KEYWORD},{"imageAtomicAdd", SYNTAX_BUILTIN},{"imageAtomicAnd", SYNTAX_BUILTIN},{"imageAtomicCompSwap", SYNTAX_BUILTIN},{"imageAtomicExchange", SYNTAX_BUILTIN},{"imageAtomicMax", SYNTAX_BUILTIN},{"imageAtomicMin", SYNTAX_BUILTIN},{"imageAtomicOr", SYNTAX_BUILTIN},{"imageAtomicXor", SYNTAX_BUILTIN},{"imageBuffer", SYNTAX_KEYWORD},{"imageCube", SYNTAX_KEYWORD},{"imageCubeArray", SYNTAX_KEYWORD},{"imageLoad", SYNTAX_BUILTIN},{"imageSamples", SYNTAX_BUILTIN},{"imageSize", SYNTAX_BUILTIN},{"imageStore", SYNTAX_BUILTIN},{"imulExtended", SYNTAX_BUILTIN},{"in", SYNTAX_KEYWORD},{"inout", SYNTAX_KEYWORD},{"int", SYNTAX_KEYWORD},{"intBitsToFloat", SYNTAX_BUILTIN},{"interpolateAtCentroid", SYNTAX_BUILTIN},{"interpolateAtOffset", SYNTAX_BUILTIN},{"interpolateAtSample", SYNTAX_BUILTIN},{"invariant", SYNTAX_KEYWORD},{"inverse", SYNTAX_BUILTIN},{"inversesqrt", SYNTAX_BUILTIN},{"isampler1D", SYNTAX_KEYWORD},{"isampler1DArray", SYNTAX_KEYWORD},{"isampler2D", SYNTAX_KEYWORD},{"isampler2DArray", SYNTAX_KEYWORD},{"isampler2DMS", SYNTAX_KEYWORD},{"isampler2DMSArray", SYNTAX_KEYWORD},{"isampler2DRect", SYNTAX_KEYWORD},{"isampler3D", SYNTAX_KEYWORD},{"isamplerBuffer", SYNTAX_KEYWORD},{"isamplerCube", SYNTAX_KEYWORD},{"isamplerCubeArray", SYNTAX_KEYWORD},{"isinf", SYNTAX_BUILTIN},{"isnan", SYNTAX_BUILTIN},{"ivec2", SYNTAX_KEYWORD},{"ivec3", SYNTAX_KEYWORD},{"ivec4", SYNTAX_KEYWORD}};
+static const Keyword syntax_keywords_glsl_l[8] = {{"layout", SYNTAX_KEYWORD},{"ldexp", SYNTAX_BUILTIN},{"length", SYNTAX_BUILTIN},{"lessThan", SYNTAX_BUILTIN},{"lessThanEqual", SYNTAX_BUILTIN},{"log", SYNTAX_BUILTIN},{"log2", SYNTAX_BUILTIN},{"lowp", SYNTAX_KEYWORD}};
+static const Keyword syntax_keywords_glsl_m[24] = {{"mat2", SYNTAX_KEYWORD},{"mat2x2", SYNTAX_KEYWORD},{"mat2x3", SYNTAX_KEYWORD},{"mat2x4", SYNTAX_KEYWORD},{"mat3", SYNTAX_KEYWORD},{"mat3x2", SYNTAX_KEYWORD},{"mat3x3", SYNTAX_KEYWORD},{"mat3x4", SYNTAX_KEYWORD},{"mat4", SYNTAX_KEYWORD},{"mat4x2", SYNTAX_KEYWORD},{"mat4x3", SYNTAX_KEYWORD},{"mat4x4", SYNTAX_KEYWORD},{"matrixCompMult", SYNTAX_BUILTIN},{"max", SYNTAX_BUILTIN},{"mediump", SYNTAX_KEYWORD},{"memoryBarrier", SYNTAX_BUILTIN},{"memoryBarrierAtomicCounter", SYNTAX_BUILTIN},{"memoryBarrierBuffer", SYNTAX_BUILTIN},{"memoryBarrierImage", SYNTAX_BUILTIN},{"memoryBarrierShared", SYNTAX_BUILTIN},{"min", SYNTAX_BUILTIN},{"mix", SYNTAX_BUILTIN},{"mod", SYNTAX_BUILTIN},{"modf", SYNTAX_BUILTIN}};
+static const Keyword syntax_keywords_glsl_n[9] = {{"noise", SYNTAX_BUILTIN},{"noise1", SYNTAX_BUILTIN},{"noise2", SYNTAX_BUILTIN},{"noise3", SYNTAX_BUILTIN},{"noise4", SYNTAX_BUILTIN},{"noperspective", SYNTAX_KEYWORD},{"normalize", SYNTAX_BUILTIN},{"not", SYNTAX_BUILTIN},{"notEqual", SYNTAX_BUILTIN}};
+static const Keyword syntax_keywords_glsl_o[2] = {{"out", SYNTAX_KEYWORD},{"outerProduct", SYNTAX_BUILTIN}};
+static const Keyword syntax_keywords_glsl_p[11] = {{"packDouble2x32", SYNTAX_BUILTIN},{"packHalf2x16", SYNTAX_BUILTIN},{"packSnorm2x16", SYNTAX_BUILTIN},{"packSnorm4x8", SYNTAX_BUILTIN},{"packUnorm", SYNTAX_BUILTIN},{"packUnorm2x16", SYNTAX_BUILTIN},{"packUnorm4x8", SYNTAX_BUILTIN},{"patch", SYNTAX_KEYWORD},{"pow", SYNTAX_BUILTIN},{"precise", SYNTAX_KEYWORD},{"precision", SYNTAX_KEYWORD}};
+static const Keyword syntax_keywords_glsl_r[9] = {{"radians", SYNTAX_BUILTIN},{"readonly", SYNTAX_KEYWORD},{"reflect", SYNTAX_BUILTIN},{"refract", SYNTAX_BUILTIN},{"removedTypes", SYNTAX_BUILTIN},{"restrict", SYNTAX_KEYWORD},{"return", SYNTAX_KEYWORD},{"round", SYNTAX_BUILTIN},{"roundEven", SYNTAX_BUILTIN}};
+static const Keyword syntax_keywords_glsl_s[30] = {{"sample", SYNTAX_KEYWORD},{"sampler1D", SYNTAX_KEYWORD},{"sampler1DArray", SYNTAX_KEYWORD},{"sampler1DArrayShadow", SYNTAX_KEYWORD},{"sampler1DShadow", SYNTAX_KEYWORD},{"sampler2D", SYNTAX_KEYWORD},{"sampler2DArray", SYNTAX_KEYWORD},{"sampler2DArrayShadow", SYNTAX_KEYWORD},{"sampler2DMS", SYNTAX_KEYWORD},{"sampler2DMSArray", SYNTAX_KEYWORD},{"sampler2DRect", SYNTAX_KEYWORD},{"sampler2DRectShadow", SYNTAX_KEYWORD},{"sampler2DShadow", SYNTAX_KEYWORD},{"sampler3D", SYNTAX_KEYWORD},{"samplerBuffer", SYNTAX_KEYWORD},{"samplerCube", SYNTAX_KEYWORD},{"samplerCubeArray", SYNTAX_KEYWORD},{"samplerCubeArrayShadow", SYNTAX_KEYWORD},{"samplerCubeShadow", SYNTAX_KEYWORD},{"shared", SYNTAX_KEYWORD},{"sign", SYNTAX_BUILTIN},{"sin", SYNTAX_BUILTIN},{"sinh", SYNTAX_BUILTIN},{"smooth", SYNTAX_KEYWORD},{"smoothstep", SYNTAX_BUILTIN},{"sqrt", SYNTAX_BUILTIN},{"step", SYNTAX_BUILTIN},{"struct", SYNTAX_KEYWORD},{"subroutine", SYNTAX_KEYWORD},{"switch", SYNTAX_KEYWORD}};
+static const Keyword syntax_keywords_glsl_t[26] = {{"tan", SYNTAX_BUILTIN},{"tanh", SYNTAX_BUILTIN},{"texelFetch", SYNTAX_BUILTIN},{"texelFetchOffset", SYNTAX_BUILTIN},{"texture", SYNTAX_BUILTIN},{"textureGather", SYNTAX_BUILTIN},{"textureGatherOffset", SYNTAX_BUILTIN},{"textureGatherOffsets", SYNTAX_BUILTIN},{"textureGrad", SYNTAX_BUILTIN},{"textureGradOffset", SYNTAX_BUILTIN},{"textureLod", SYNTAX_BUILTIN},{"textureLodOffset", SYNTAX_BUILTIN},{"textureOffset", SYNTAX_BUILTIN},{"textureProj", SYNTAX_BUILTIN},{"textureProjGrad", SYNTAX_BUILTIN},{"textureProjGradOffset", SYNTAX_BUILTIN},{"textureProjLod", SYNTAX_BUILTIN},{"textureProjLodOffset", SYNTAX_BUILTIN},{"textureProjOffset", SYNTAX_BUILTIN},{"textureQueryLevels", SYNTAX_BUILTIN},{"textureQueryLod", SYNTAX_BUILTIN},{"textureSamples", SYNTAX_BUILTIN},{"textureSize", SYNTAX_BUILTIN},{"transpose", SYNTAX_BUILTIN},{"true", SYNTAX_KEYWORD},{"trunc", SYNTAX_BUILTIN}};
+static const Keyword syntax_keywords_glsl_u[38] = {{"uaddCarry", SYNTAX_BUILTIN},{"uimage1D", SYNTAX_KEYWORD},{"uimage1DArray", SYNTAX_KEYWORD},{"uimage2D", SYNTAX_KEYWORD},{"uimage2DArray", SYNTAX_KEYWORD},{"uimage2DMS", SYNTAX_KEYWORD},{"uimage2DMSArray", SYNTAX_KEYWORD},{"uimage2DRect", SYNTAX_KEYWORD},{"uimage3D", SYNTAX_KEYWORD},{"uimageBuffer", SYNTAX_KEYWORD},{"uimageCube", SYNTAX_KEYWORD},{"uimageCubeArray", SYNTAX_KEYWORD},{"uint", SYNTAX_KEYWORD},{"uintBitsToFloat", SYNTAX_BUILTIN},{"umulExtended", SYNTAX_BUILTIN},{"uniform", SYNTAX_KEYWORD},{"unpackDouble2x32", SYNTAX_BUILTIN},{"unpackHalf2x16", SYNTAX_BUILTIN},{"unpackSnorm2x16", SYNTAX_BUILTIN},{"unpackSnorm4x8", SYNTAX_BUILTIN},{"unpackUnorm", SYNTAX_BUILTIN},{"unpackUnorm2x16", SYNTAX_BUILTIN},{"unpackUnorm4x8", SYNTAX_BUILTIN},{"usampler1D", SYNTAX_KEYWORD},{"usampler1DArray", SYNTAX_KEYWORD},{"usampler2D", SYNTAX_KEYWORD},{"usampler2DArray", SYNTAX_KEYWORD},{"usampler2DMS", SYNTAX_KEYWORD},{"usampler2DMSArray", SYNTAX_KEYWORD},{"usampler2DRect", SYNTAX_KEYWORD},{"usampler3D", SYNTAX_KEYWORD},{"usamplerBuffer", SYNTAX_KEYWORD},{"usamplerCube", SYNTAX_KEYWORD},{"usamplerCubeArray", SYNTAX_KEYWORD},{"usubBorrow", SYNTAX_BUILTIN},{"uvec2", SYNTAX_KEYWORD},{"uvec3", SYNTAX_KEYWORD},{"uvec4", SYNTAX_KEYWORD}};
+static const Keyword syntax_keywords_glsl_v[6] = {{"varying", SYNTAX_KEYWORD},{"vec2", SYNTAX_KEYWORD},{"vec3", SYNTAX_KEYWORD},{"vec4", SYNTAX_KEYWORD},{"void", SYNTAX_KEYWORD},{"volatile", SYNTAX_KEYWORD}};
+static const Keyword syntax_keywords_glsl_w[2] = {{"while", SYNTAX_KEYWORD},{"writeonly", SYNTAX_KEYWORD}};
+static const KeywordList syntax_all_keywords_glsl[128] = {
+ ['E'] = {syntax_keywords_glsl_E, arr_count(syntax_keywords_glsl_E)}, ['a'] = {syntax_keywords_glsl_a, arr_count(syntax_keywords_glsl_a)}, ['b'] = {syntax_keywords_glsl_b, arr_count(syntax_keywords_glsl_b)}, ['c'] = {syntax_keywords_glsl_c, arr_count(syntax_keywords_glsl_c)}, ['d'] = {syntax_keywords_glsl_d, arr_count(syntax_keywords_glsl_d)}, ['e'] = {syntax_keywords_glsl_e, arr_count(syntax_keywords_glsl_e)}, ['f'] = {syntax_keywords_glsl_f, arr_count(syntax_keywords_glsl_f)}, ['g'] = {syntax_keywords_glsl_g, arr_count(syntax_keywords_glsl_g)}, ['h'] = {syntax_keywords_glsl_h, arr_count(syntax_keywords_glsl_h)}, ['i'] = {syntax_keywords_glsl_i, arr_count(syntax_keywords_glsl_i)}, ['l'] = {syntax_keywords_glsl_l, arr_count(syntax_keywords_glsl_l)}, ['m'] = {syntax_keywords_glsl_m, arr_count(syntax_keywords_glsl_m)}, ['n'] = {syntax_keywords_glsl_n, arr_count(syntax_keywords_glsl_n)}, ['o'] = {syntax_keywords_glsl_o, arr_count(syntax_keywords_glsl_o)}, ['p'] = {syntax_keywords_glsl_p, arr_count(syntax_keywords_glsl_p)}, ['r'] = {syntax_keywords_glsl_r, arr_count(syntax_keywords_glsl_r)}, ['s'] = {syntax_keywords_glsl_s, arr_count(syntax_keywords_glsl_s)}, ['t'] = {syntax_keywords_glsl_t, arr_count(syntax_keywords_glsl_t)}, ['u'] = {syntax_keywords_glsl_u, arr_count(syntax_keywords_glsl_u)}, ['v'] = {syntax_keywords_glsl_v, arr_count(syntax_keywords_glsl_v)}, ['w'] = {syntax_keywords_glsl_w, arr_count(syntax_keywords_glsl_w)}
+};
+