summaryrefslogtreecommitdiffstats
path: root/crates/rebel-parse/src/ast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rebel-parse/src/ast.rs')
-rw-r--r--crates/rebel-parse/src/ast.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/rebel-parse/src/ast.rs b/crates/rebel-parse/src/ast.rs
index 648a79e..389523e 100644
--- a/crates/rebel-parse/src/ast.rs
+++ b/crates/rebel-parse/src/ast.rs
@@ -132,12 +132,17 @@ pub struct FuncParam<'a> {
pub typ: Expr<'a>,
}
+pub use token::StringKind;
+
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Literal<'a> {
Unit,
Boolean(bool),
Integer(u64),
- String(Vec<StringPiece<'a>>),
+ String {
+ pieces: Vec<StringPiece<'a>>,
+ kind: StringKind,
+ },
Tuple(Vec<Expr<'a>>),
Array(Vec<Expr<'a>>),
Map(Vec<MapEntry<'a>>),