diff options
author | Adrian Thurston <thurston@colm.net> | 2020-01-09 15:30:39 +0200 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2020-01-09 15:30:39 +0200 |
commit | 4525ffd0ab1dff0e49b84cf1c6baa9ed4b3dda35 (patch) | |
tree | ed0c76ac045e1612c82d7cf3d0b9d24ceea72c6d | |
parent | baf56d05fd7c14bcd91e8d4a4563847a68a5451f (diff) | |
download | colm-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
-rw-r--r-- | ragel/host-asm/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-c/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-crack/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-csharp/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-d/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-go/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-java/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-js/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-julia/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-ocaml/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-ruby/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/host-rust/rlparse.lm | 2 | ||||
-rw-r--r-- | ragel/rlparse.lm | 2 |
13 files changed, 13 insertions, 13 deletions
diff --git a/ragel/host-asm/rlparse.lm b/ragel/host-asm/rlparse.lm index fd0b2c29..911e3ea6 100644 --- a/ragel/host-asm/rlparse.lm +++ b/ragel/host-asm/rlparse.lm @@ -69,7 +69,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( "%%{" ) } diff --git a/ragel/host-c/rlparse.lm b/ragel/host-c/rlparse.lm index 3d315492..0fd61bbf 100644 --- a/ragel/host-c/rlparse.lm +++ b/ragel/host-c/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( "%%{" ) } diff --git a/ragel/host-crack/rlparse.lm b/ragel/host-crack/rlparse.lm index db7851c7..100a9223 100644 --- a/ragel/host-crack/rlparse.lm +++ b/ragel/host-crack/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( "%%{" ) } diff --git a/ragel/host-csharp/rlparse.lm b/ragel/host-csharp/rlparse.lm index db7851c7..100a9223 100644 --- a/ragel/host-csharp/rlparse.lm +++ b/ragel/host-csharp/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( "%%{" ) } 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( "%%{" ) } diff --git a/ragel/host-go/rlparse.lm b/ragel/host-go/rlparse.lm index db7851c7..100a9223 100644 --- a/ragel/host-go/rlparse.lm +++ b/ragel/host-go/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( "%%{" ) } diff --git a/ragel/host-java/rlparse.lm b/ragel/host-java/rlparse.lm index db7851c7..100a9223 100644 --- a/ragel/host-java/rlparse.lm +++ b/ragel/host-java/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( "%%{" ) } diff --git a/ragel/host-js/rlparse.lm b/ragel/host-js/rlparse.lm index db7851c7..100a9223 100644 --- a/ragel/host-js/rlparse.lm +++ b/ragel/host-js/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( "%%{" ) } diff --git a/ragel/host-julia/rlparse.lm b/ragel/host-julia/rlparse.lm index db7851c7..100a9223 100644 --- a/ragel/host-julia/rlparse.lm +++ b/ragel/host-julia/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( "%%{" ) } diff --git a/ragel/host-ocaml/rlparse.lm b/ragel/host-ocaml/rlparse.lm index fd0b2c29..911e3ea6 100644 --- a/ragel/host-ocaml/rlparse.lm +++ b/ragel/host-ocaml/rlparse.lm @@ -69,7 +69,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( "%%{" ) } diff --git a/ragel/host-ruby/rlparse.lm b/ragel/host-ruby/rlparse.lm index 9570244c..99811877 100644 --- a/ragel/host-ruby/rlparse.lm +++ b/ragel/host-ruby/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( "%%{" ) } diff --git a/ragel/host-rust/rlparse.lm b/ragel/host-rust/rlparse.lm index db7851c7..100a9223 100644 --- a/ragel/host-rust/rlparse.lm +++ b/ragel/host-rust/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( "%%{" ) } diff --git a/ragel/rlparse.lm b/ragel/rlparse.lm index be6e1066..02a937c5 100644 --- a/ragel/rlparse.lm +++ b/ragel/rlparse.lm @@ -69,7 +69,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( "%%{" ) } |