aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/lexer/second-token.test
blob: cc044dd79ee38f87744ff6f3e9064cb3341333a7 (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
# Note: this mode auto-expires after each token.
#
test.arguments += second-token

$* <";" >>EOO # semi-only
;
<newline>
EOO

$* <"=foo" >>EOO # assign
=
'foo'
<newline>
EOO

$* <"+= foo" >>EOO # append
+=
'foo'
<newline>
EOO

$* <" =+ foo" >>EOO # prepend
=+
'foo'
<newline>
EOO

$* <"foo=bar" >>EOO # assign-leading
'foo=bar'
<newline>
EOO

$* <"foo+= bar" >>EOO # append-leading
'foo+='
'bar'
<newline>
EOO

$* <"foo =+bar" >>EOO # prepend-leading
'foo'
'=+bar'
<newline>
EOO