also looking at this
Port to latest zig-master
#2
53 files
+1149
-1017
| @@ -16,10 +16,10 @@ pub const AtomicGroupNode = struct { | ||
| 16 | 16 | /// Possessive Quantifiers: *+, ++, ?+, {n,m}+ |
| 17 | 17 | /// Like greedy quantifiers but don't backtrack |
| 18 | 18 | pub const PossessiveQuantifier = enum { |
| 19 | star_possessive, // *+ | |
| 20 | plus_possessive, // ++ | |
| 19 | star_possessive, // *+ | |
| 20 | plus_possessive, // ++ | |
| 21 | 21 | optional_possessive, // ?+ |
| 22 | repeat_possessive, // {n,m}+ | |
| 22 | repeat_possessive, // {n,m}+ | |
| 23 | 23 | |
| 24 | 24 | pub fn fromGreedy(_: bool) ?PossessiveQuantifier { |
| 25 | 25 | // Helper to detect possessive syntax |
| @@ -74,7 +74,7 @@ pub const AdvancedNodeType = enum { | ||
| 74 | 74 | // Tests |
| 75 | 75 | test "atomic group creation" { |
| 76 | 76 | const allocator = std.testing.allocator; |
| 77 | ||
| 77 | ||
| 78 | 78 | // Create a simple child node (literal 'a') |
| 79 | 79 | const child = try ast.Node.createLiteral(allocator, 'a', .{ .start = 0, .end = 1 }); |
| 80 | 80 | defer allocator.destroy(child); |