File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ fn cons_str(head: char, tail: &str) -> String {
82
82
/// - `*`,
83
83
/// - `!`,
84
84
fn is_identifier_char ( chr : char ) -> bool {
85
- chr. is_alphanumeric ( ) || "|?<>+-_=^%&$*!/ " . contains ( chr)
85
+ chr. is_alphanumeric ( ) || "|?<>+-_=^%&$*!" . contains ( chr)
86
86
}
87
87
88
88
/// Returns whether if a character can be in the head of an identifier.
@@ -127,16 +127,16 @@ pub fn identifier_parser(input: &str) -> IResult<&str, String> {
127
127
) ;
128
128
129
129
named ! ( identifier_tail<& str , & str >, take_while!( is_identifier_char) ) ;
130
-
131
- named ! ( identifier_ <& str , String >,
130
+
131
+ named ! ( identifier <& str , String >,
132
132
do_parse!(
133
133
head: identifier_head >>
134
134
rest_input: identifier_tail >>
135
135
( cons_str( head, rest_input) )
136
136
)
137
137
) ;
138
138
139
- identifier_ ( input)
139
+ identifier ( input)
140
140
}
141
141
142
142
/// Parses valid Clojure symbols, whose name is a valid identifier
You can’t perform that action at this time.
0 commit comments