summaryrefslogtreecommitdiff
path: root/test/context2.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2011-05-20 21:19:56 +0000
committerAdrian Thurston <thurston@complang.org>2011-05-20 21:19:56 +0000
commit9b6006286b0de94880d44d708acb3394df28ad42 (patch)
treed23f75e80d18e316a4d09ffbf9533e600e4cddd1 /test/context2.lm
parent4738d0e77d853eeabcdebc0961c13c3762dca62b (diff)
downloadcolm-9b6006286b0de94880d44d708acb3394df28ad42.tar.gz
Can now capture (declare) variables in construct and parse statements. Name:
goes right after the keyword in the expression. refs #290.
Diffstat (limited to 'test/context2.lm')
-rw-r--r--test/context2.lm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/context2.lm b/test/context2.lm
index 4f6ba2be..9f985341 100644
--- a/test/context2.lm
+++ b/test/context2.lm
@@ -26,10 +26,10 @@ context ruby_here
HereId = input.pull( match_length )
# Get the data up to the rest of the line.
- ROL: rest_of_line = parse_stop rest_of_line( ctx input )
+ parse_stop ROL: rest_of_line( ctx input )
# Parse the heredoc data.
- HereData: here_data = parse_stop here_data( ctx input )
+ parse_stop HereData: here_data( ctx input )
# Push the rest-of-line data back to the input stream.
input.push( $ROL )