Rule::<caret>
is not yet available -- as intellij-rust devs claims that the completion API will not be very stable
Hi. I can't realize how to skip character.
E.g. I have this:
regex_char = _{
!("\\" | "/") ~ ANY
}
pattern = @{ regex_char* }
regex = { "/" ~ pattern ~ "/" }
I want to parse string /a\/b/
to regex -> pattern("a/b")
, so backslash character is skipped and /a\\b/
to regex -> pattern("a\\b")
, so first backslash character is skipped. How can I achieve this?
Another example: I want to allow non-quoted strings for simple cases (like in TOML paths).
quoted_string_char = _{
!("\"" | "\\") ~ ANY
| "\\" ~ ANY
}
quoted_string = _{
"\"" ~ quoted_string_char* ~ "\""
}
string = ${
ASCII_ALPHANUMERIC+
| quoted_string
}
This code leaves quotes in string for quoted strings
DateTime<Utc>
objects from some input and iterating through all the submatches to find one specific one sounds wrong. Also having a bunch of (defaulted) mutable vars that I fill while iterating feels wrong.