summaryrefslogtreecommitdiff
path: root/ragel/host-d/rlparse.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2020-01-09 15:30:39 +0200
committerAdrian Thurston <thurston@colm.net>2020-01-09 15:30:39 +0200
commit4525ffd0ab1dff0e49b84cf1c6baa9ed4b3dda35 (patch)
treeed0c76ac045e1612c82d7cf3d0b9d24ceea72c6d /ragel/host-d/rlparse.lm
parentbaf56d05fd7c14bcd91e8d4a4563847a68a5451f (diff)
downloadcolm-4525ffd0ab1dff0e49b84cf1c6baa9ed4b3dda35.tar.gz
ragel: don't send \n before closing }%%
Sending a newline means a missing ; results in the error getting attributed to the next line. refs #103
Diffstat (limited to 'ragel/host-d/rlparse.lm')
-rw-r--r--ragel/host-d/rlparse.lm2
1 files changed, 1 insertions, 1 deletions
diff --git a/ragel/host-d/rlparse.lm b/ragel/host-d/rlparse.lm
index ddc5157b..05b21ea2 100644
--- a/ragel/host-d/rlparse.lm
+++ b/ragel/host-d/rlparse.lm
@@ -68,7 +68,7 @@ namespace host
# Translates single line to multi-line
input->pull( 2 )
R: str = input->pull( match_length - 3 )
- input->push( "\n}%%" )
+ input->push( "}%%" )
input->push( R )
input->push( "%%{" )
}