소스 검색

make parse_path behave like it did with grandpa extlib

Simon Krajewski 8 년 전
부모
커밋
22a08f749a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/syntax/ast.ml

+ 1 - 1
src/syntax/ast.ml

@@ -330,7 +330,7 @@ let rec punion_el el = match el with
 
 let parse_path s =
 	match List.rev (ExtString.String.nsplit s ".") with
-	| [] -> failwith "Invalid empty path"
+	| [] -> [],"" (* This is how old extlib behaved. *)
 	| x :: l -> List.rev l, x
 
 let s_escape ?(hex=true) s =