summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ragel/host-rust/rlhc.lm3
-rw-r--r--test/ragel.d/rust1.rl2
2 files changed, 5 insertions, 0 deletions
diff --git a/ragel/host-rust/rlhc.lm b/ragel/host-rust/rlhc.lm
index 61daa84f..a9c42c2d 100644
--- a/ragel/host-rust/rlhc.lm
+++ b/ragel/host-rust/rlhc.lm
@@ -25,6 +25,8 @@ namespace rust_out
literal `{ `}
+ token lifetime / "'" id /
+
token string /
'"' ( [^"\\] | '\\' any ) * '"' |
"'" ( [^'\\] | '\\' any ) * "'"
@@ -40,6 +42,7 @@ namespace rust_out
| [number]
| [symbol]
| [string]
+ | [lifetime]
| [`{ _IN_ item* _EX_ `} ]
def rust_out
diff --git a/test/ragel.d/rust1.rl b/test/ragel.d/rust1.rl
index 8a95425e..5eac919b 100644
--- a/test/ragel.d/rust1.rl
+++ b/test/ragel.d/rust1.rl
@@ -10,6 +10,8 @@
};
}%%
+fn some_fn() -> &'static str { "foo" }
+
%% write data;
fn m( s: String )