strings
This commit is contained in:
@@ -1087,6 +1087,12 @@ pub const Parser = struct {
|
||||
self.advance();
|
||||
return try self.createNode(start, .{ .string_literal = .{ .raw = raw[1 .. raw.len - 1] } });
|
||||
},
|
||||
.raw_string_literal => {
|
||||
// #string heredoc — token span is content only, no stripping needed
|
||||
const raw = self.tokenSlice(self.current);
|
||||
self.advance();
|
||||
return try self.createNode(start, .{ .string_literal = .{ .raw = raw, .is_raw = true } });
|
||||
},
|
||||
.kw_true => {
|
||||
self.advance();
|
||||
return try self.createNode(start, .{ .bool_literal = .{ .value = true } });
|
||||
|
||||
Reference in New Issue
Block a user