Browse Source

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

Simon Krajewski 11 years ago
parent
commit
3a938dab8e
1 changed files with 2 additions and 0 deletions
  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