Sfoglia il codice sorgente

allow `import Type as Alias` in the name of the grammar (closes #2361)

Simon Krajewski 11 anni fa
parent
commit
3a938dab8e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      parser.ml

+ 2 - 0
parser.ml

@@ -660,6 +660,8 @@ and parse_import s p1 =
 			p2, List.rev acc, INormal
 		| [< '(Kwd In,_); '(Const (Ident name),_); '(Semicolon,p2) >] ->
 			p2, List.rev acc, IAsName name
+		| [< '(Const (Ident "as"),_); '(Const (Ident name),_); '(Semicolon,p2) >] ->
+			p2, List.rev acc, IAsName name
 		| [< >] ->
 			serror()
 	in