-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsyntax_test_other.pio
92 lines (70 loc) · 2.21 KB
/
syntax_test_other.pio
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
// SYNTAX TEST "Packages/PIO Syntax/pio.sublime-syntax"
// ********** Comments **********
// foo
// ^ source.pio comment.line
// <- punctuation.definition.comment
; foo
// ^ source.pio comment.line
// <- punctuation.definition.comment
/* foo */
// ^ source.pio comment.block
// <- punctuation.definition.comment.begin
// ^ punctuation.definition.comment.end
// ********** Directives **********
.program name_123
// <- source.pio directive punctuation.definition.directive
// ^ directive.program
// ^ directive.program.name
.origin 0
// <- source.pio directive punctuation.definition.directive
// ^ directive.origin
// ^ constant.numeric.value
.side_set 1
// <- source.pio directive punctuation.definition.directive
// ^ directive.side_set
// ^ constant.numeric.value
.side_set 3 opt pindirs
// <- source.pio directive punctuation.definition.directive
// ^ directive.side_set
// ^ constant.numeric.value
// ^ directive.side_set.optional
// ^ directive.side_set.pindirs
.side_set 2 pindirs
// ^ directive.side_set.pindirs
.wrap_target
// <- source.pio directive punctuation.definition.directive
// ^ directive.warp.target
.wrap
// <- source.pio directive punctuation.definition.directive
// ^ directive.warp
.define TEST 123
// <- source.pio directive punctuation.definition.directive
// ^ directive.define
// ^ directive.define.symbol
// ^ directive.define.value
// ^ constant.numeric.value
.define PUBLIC ABC123 ABC
// <- source.pio directive punctuation.definition.directive
// ^ directive.define
// ^ directive.define.public
// ^ directive.define.symbol
// ^ directive.define.value
.word 0x567
// <- source.pio directive punctuation.definition.directive
// ^ directive.word
// ^ directive.word.value
// ********** Labels **********
label:
// <- source.pio label
// ^ label.symbol
// ^ punctuation.separator
public label:
// <- source.pio label
// ^ label.public
// ^ label.symbol
// ^ punctuation.separator
// ********** Expressions **********
.define TEST 1+2
// <- source.pio directive punctuation.definition.directive
// ^ directive.define.value
// ^ constant.numeric.value