aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/text/regex/common/common.odin11
-rw-r--r--core/text/regex/regex.odin11
2 files changed, 11 insertions, 11 deletions
diff --git a/core/text/regex/common/common.odin b/core/text/regex/common/common.odin
index f401658cb..1169bb3d4 100644
--- a/core/text/regex/common/common.odin
+++ b/core/text/regex/common/common.odin
@@ -25,3 +25,14 @@ Flag :: enum u8 {
}
Flags :: bit_set[Flag; u8]
+
+@(rodata)
+Flag_To_Letter := #sparse[Flag]u8 {
+ .Global = 'g',
+ .Multiline = 'm',
+ .Case_Insensitive = 'i',
+ .Ignore_Whitespace = 'x',
+ .Unicode = 'u',
+ .No_Capture = 'n',
+ .No_Optimization = '-',
+}
diff --git a/core/text/regex/regex.odin b/core/text/regex/regex.odin
index 9da7e9246..a4bd4292e 100644
--- a/core/text/regex/regex.odin
+++ b/core/text/regex/regex.odin
@@ -36,17 +36,6 @@ Regular_Expression :: struct {
}
-@(rodata)
-Flag_To_Letter := #sparse[Flag]u8 {
- .Global = 'g',
- .Multiline = 'm',
- .Case_Insensitive = 'i',
- .Ignore_Whitespace = 'x',
- .Unicode = 'u',
- .No_Capture = 'n',
- .No_Optimization = '-',
-}
-
/*
Create a regular expression from a string pattern and a set of flags.