File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ fn cons_str(head: char, tail: &str) -> String {
8282/// - `*`,
8383/// - `!`,
8484fn is_identifier_char ( chr : char ) -> bool {
85- chr. is_alphanumeric ( ) || "|?<>+-_=^%&$*!/ " . contains ( chr)
85+ chr. is_alphanumeric ( ) || "|?<>+-_=^%&$*!" . contains ( chr)
8686}
8787
8888/// 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> {
127127 ) ;
128128
129129 named ! ( identifier_tail<& str , & str >, take_while!( is_identifier_char) ) ;
130-
131- named ! ( identifier_ <& str , String >,
130+
131+ named ! ( identifier <& str , String >,
132132 do_parse!(
133133 head: identifier_head >>
134134 rest_input: identifier_tail >>
135135 ( cons_str( head, rest_input) )
136136 )
137137 ) ;
138138
139- identifier_ ( input)
139+ identifier ( input)
140140}
141141
142142/// Parses valid Clojure symbols, whose name is a valid identifier
You can’t perform that action at this time.
0 commit comments