Skip to content

Commit

Permalink
Change priority for interface, prefer interface to extern class/inter…
Browse files Browse the repository at this point in the history
…face
  • Loading branch information
as3boyan committed Apr 8, 2015
1 parent 28693be commit 03fbf32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gen/com/intellij/plugins/haxe/lang/parser/HaxeParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -5295,19 +5295,19 @@ static boolean topLevel(PsiBuilder b, int l) {

/* ********************************************************** */
// classDeclaration
// | interfaceDeclaration
// | externClassDeclaration
// | abstractClassDeclaration
// | interfaceDeclaration
// | enumDeclaration
// | typedefDeclaration
static boolean topLevelDeclaration(PsiBuilder b, int l) {
if (!recursion_guard_(b, l, "topLevelDeclaration")) return false;
boolean r;
Marker m = enter_section_(b);
r = classDeclaration(b, l + 1);
if (!r) r = interfaceDeclaration(b, l + 1);
if (!r) r = externClassDeclaration(b, l + 1);
if (!r) r = abstractClassDeclaration(b, l + 1);
if (!r) r = interfaceDeclaration(b, l + 1);
if (!r) r = enumDeclaration(b, l + 1);
if (!r) r = typedefDeclaration(b, l + 1);
exit_section_(b, m, null, r);
Expand Down
2 changes: 1 addition & 1 deletion grammar/haxe.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ private importStatementAll ::= importStatementWithWildcard | importStatementWith
usingStatement ::= 'using' simpleQualifiedReferenceExpression ';' {pin=1}

private topLevelDeclaration ::= classDeclaration
| interfaceDeclaration
| externClassDeclaration
| abstractClassDeclaration
| interfaceDeclaration
| enumDeclaration
| typedefDeclaration

Expand Down

0 comments on commit 03fbf32

Please sign in to comment.