File: highlight.glsl

package info (click to toggle)
libsyntax-highlight-engine-kate-perl 0.14%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 3,848 kB
  • sloc: perl: 84,065; ruby: 176; asm: 166; cpp: 144; jsp: 128; haskell: 116; sh: 111; f90: 99; python: 98; ml: 75; xml: 43; yacc: 37; ansic: 32; tcl: 29; lisp: 24; makefile: 14; awk: 13; php: 5
file content (62 lines) | stat: -rw-r--r-- 1,072 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// This is a test file for the Katepart GLSL Syntax Highlighting.

normal text
// this is a single-line comment
normal text
/* this
is a multi-line 
comment */
normal text

some_symbol.some_member;
some_symbol.some_member_function();
some_function();

// this is a function
void main()
{
	float f = 1.4e3; // decimal float literal
	int i1 = 2884;   // decimal int literal
	int i2 = 0x44;   // hex int literal
	int i3 = 0456;   // octal int literal
}

// this is a structure
struct some_struct
{
	vec3 some_member_vector;
};

# this is 
#preprocessor code

// all keywords
break continue do for while
if else
true false
discard return
struct

// all basic types
float int void bool
mat2 mat3 mat4
vec2 vec3 vec4
ivec2 ivec3 ivec4
bvec2 bvec3 bvec4
sampler1D sampler2D sampler3D
samplerCube sampler1DShadow sampler1DShadow

// all type qualifiers
attribute const uniform varying
in out inout

// attensions:
// FIXME
// TODO
// BUG

// some of the std functions
radians degrees sin cos tan asin acos atan

// some of the std variables
gl_Position gl_PointSize gl_ClipVertex