We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-
$
1 parent 67e2a43 commit 1ad4a8bCopy full SHA for 1ad4a8b
resl/src/string.rs
@@ -32,5 +32,8 @@ pub(crate) fn parse(input: &mut StatefulInput) -> ModalResult<Expr> {
32
pub(crate) fn parse_plain<'input>(
33
input: &mut StatefulInput<'input, '_>,
34
) -> ModalResult<&'input str> {
35
- take_while(1.., |c: char| c.is_alphanumeric() || c == '_').parse_next(input)
+ take_while(1.., |c: char| {
36
+ c.is_alphanumeric() || ['_', '-', '$'].contains(&c)
37
+ })
38
+ .parse_next(input)
39
}
0 commit comments