Browse Source

Hide `Regular_Expression` values

We don't directly support printing these.

To prevent future issues being raised about the pattern being missing if
someone tries to print one, hide everything.
Feoramund 1 year ago
parent
commit
d3a51e208d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/text/regex/regex.odin

+ 2 - 2
core/text/regex/regex.odin

@@ -30,8 +30,8 @@ Capture :: struct {
 }
 
 Regular_Expression :: struct {
-	flags: Flags,
-	class_data: []virtual_machine.Rune_Class_Data,
+	flags: Flags `fmt:"-"`,
+	class_data: []virtual_machine.Rune_Class_Data `fmt:"-"`,
 	program: []virtual_machine.Opcode `fmt:"-"`,
 }