-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsyntax_test_ps.ps
118 lines (97 loc) · 3.41 KB
/
syntax_test_ps.ps
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
% SYNTAX TEST "Packages/PostScript/PostScript.sublime-syntax"
% comment {/%) blah blah blah
% <- punctuation.definition.comment
%^^^^^^^^^^^^^^^ comment.line
123 -98 +17
% ^^^ constant.numeric
% ^^^ constant.numeric
% ^^^ constant.numeric
-.002 123.6e10 1.0E-5 -1. 0.0
% ^^^^^ constant.numeric
% ^^^^^^^^ constant.numeric
% ^^^^^^ constant.numeric
% ^^^ constant.numeric
% ^^^ constant.numeric
8#1 16#F 32#1z
% ^^^ constant.numeric
% ^^^^ constant.numeric
% ^^^^^ constant.numeric
true false null
% ^^^^ constant.language
% ^^^^^ constant.language
% ^^^^ constant.language
systemdict globaldict userdict
% ^^^^^^^^^^ constant.other.dictionary
% ^^^^^^^^^^ constant.other.dictionary
% ^^^^^^^^ constant.other.dictionary
(Strings may contain special characters *!&}^% and
% <- punctuation.definition.string.begin
%^^^^^^^^^^^^^^^^^^^^^^^^^^ string.literal
balanced parentheses (()) (and so on).)
%^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.literal
% ^ punctuation.definition.string.end
(\n \377)
% <- punctuation.definition.string.begin
%^^ constant.character.escape
% ^^^^ constant.character.escape
% ^ punctuation.definition.string.end
<hex>
% <- punctuation.definition.string.begin
%^ invalid.illegal.unexpected-character
%^^^^ string.hexadecimal
% ^ invalid.illegal.unexpected-character
% ^ punctuation.definition.string.end
<~asc¡i~>
% ^^ punctuation.definition.string.begin
% ^^^^^^^^^ string.ascii
% ^ invalid.illegal.unexpected-character
% ^^ punctuation.definition.string.end
abc Offset $$ 23A 13−456 a.b $MyDict @pattern
%^^ variable.other.readwrite
% ^^^^^^ variable.other.readwrite
% ^^ variable.other.readwrite
% ^^^ variable.other.readwrite
% ^ - variable.other.readwrite
% ^^^^^^ variable.other.readwrite
% ^^^ variable.other.readwrite
% ^^^^^^^ variable.other.readwrite
% ^^^^^^^^ variable.other.readwrite
/
% <- variable.other.readwrite punctuation.definition.variable
//
% <- variable.other.readwrite punctuation.definition.variable
%^ variable.other.readwrite punctuation.definition.variable
/name //name
% <- punctuation.definition.variable
%^^^^ variable.other.readwrite
% ^^ punctuation.definition.variable
% ^^^^^^ variable.other.readwrite
[/name 22 <f00> (str)]
%^^^^^^^^^^^^^^^^^^^^^ meta.brackets
% <- punctuation.definition.brackets.begin
%^^^^^ variable.other.readwrite
% ^^ constant.numeric
% ^^^^^ string.hexadecimal
% ^^^^^ string.literal
% ^ punctuation.definition.brackets.end
{/name 22 <f00> (str)}
%^^^^^^^^^^^^^^^^^^^^^ meta.brackets
% <- punctuation.definition.brackets.begin
%^^^^^ variable.other.readwrite
% ^^ constant.numeric
% ^^^^^ string.hexadecimal
% ^^^^^ string.literal
% ^ punctuation.definition.brackets.end
<< dictionary >>
%^^ punctuation.definition.dictionary.begin
%^^^^^^^^^^^^^^^^ meta.dictionary
% ^^ punctuation.definition.dictionary.end
= ==
% <- keyword.operator.file
% ^^ keyword.operator.file
1 2 add
% ^^^ keyword.operator.arithmetic
1 2 le
% ^^ keyword.operator.comparison
a b gt {a} {b} ifelse
% ^^^^^^ keyword.operator.control