ReviewOS

also looking at this

zig-utils/zig-regex

Port to latest zig-master

#2
Closed armagidon-exception wants to merge main into main
53 files +1149 -1017
src/advanced_features.zigmodifiedformatting only+4-4
Changes to src/advanced_features.zig
@@ -16,10 +16,10 @@ pub const AtomicGroupNode = struct {
1616/// Possessive Quantifiers: *+, ++, ?+, {n,m}+
1717/// Like greedy quantifiers but don't backtrack
1818pub const PossessiveQuantifier = enum {
19 star_possessive, // *+
20 plus_possessive, // ++
19 star_possessive, // *+
20 plus_possessive, // ++
2121 optional_possessive, // ?+
22 repeat_possessive, // {n,m}+
22 repeat_possessive, // {n,m}+
2323
2424 pub fn fromGreedy(_: bool) ?PossessiveQuantifier {
2525 // Helper to detect possessive syntax
@@ -74,7 +74,7 @@ pub const AdvancedNodeType = enum {
7474// Tests
7575test "atomic group creation" {
7676 const allocator = std.testing.allocator;
77
77
7878 // Create a simple child node (literal 'a')
7979 const child = try ast.Node.createLiteral(allocator, 'a', .{ .start = 0, .end = 1 });
8080 defer allocator.destroy(child);