aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/lexer+first-token.test.testscript
blob: 6709e607c581fbf7cd2e2e210da23016d438b965 (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
# file      : libbuild2/build/script/lexer+first-token.test.testscript
# license   : MIT; see accompanying LICENSE file

# Note: this mode auto-expires after each token.
#
test.arguments = first-token

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

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

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