blob: 0623b055056ebd67670a09720e93c4a2c91b06c9 (
plain)
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
63
64
65
66
67
68
69
70
71
72
73
|
'/* Fragment shader */' Comment.Multiline
'\n\n' Text.Whitespace
'// Macro inside a single-line comment: #define COMMENT_MACRO 1' Comment.Single
'\n\n' Text.Whitespace
'/* Macro inside a block comment: #define COMMENT_MACRO 2 */' Comment.Multiline
'\n\n ' Text.Whitespace
'# define INDENTED_MACRO 5.0' Comment.Preproc
'\n\n' Text.Whitespace
'#define SINGLELINE_MACRO 10.0' Comment.Preproc
'\n\n' Text.Whitespace
'#define MULTILINE_MACRO(a, b) vec2( \\\n a, \\\n b \\\n)' Comment.Preproc
'\n\n' Text.Whitespace
'void' Keyword.Type
' ' Text.Whitespace
'main' Name
'(' Punctuation
')' Punctuation
'\n' Text.Whitespace
'{' Punctuation
'\n ' Text.Whitespace
'gl_FragColor' Name.Builtin
'[' Punctuation
'0' Literal.Number.Oct
']' Punctuation
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'gl_FragCoord' Name.Builtin
'[' Punctuation
'0' Literal.Number.Oct
']' Punctuation
' ' Text.Whitespace
'/' Operator
' ' Text.Whitespace
'400.0' Literal.Number.Float
';' Punctuation
'\n ' Text.Whitespace
'gl_FragColor' Name.Builtin
'[' Punctuation
'1' Literal.Number.Integer
']' Punctuation
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'gl_FragCoord' Name.Builtin
'[' Punctuation
'1' Literal.Number.Integer
']' Punctuation
' ' Text.Whitespace
'/' Operator
' ' Text.Whitespace
'400.0' Literal.Number.Float
';' Punctuation
'\n ' Text.Whitespace
'gl_FragColor' Name.Builtin
'[' Punctuation
'2' Literal.Number.Integer
']' Punctuation
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'1.0' Literal.Number.Float
';' Punctuation
'\n' Text.Whitespace
'}' Punctuation
'\n' Text.Whitespace
|