Skip to content

Commit

Permalink
Fixed white spaces before module header parsing error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed May 16, 2024
1 parent 48104b8 commit aaaf1f3
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@ protected ModuleElementDocumentation parseModuleElementDocumentation() {
protected Module parseModule(List<Comment> comments) {
final Module res;

skipSpaces();
if (text.startsWith(MODULE_HEADER_START, currentPosition)) {
// Start of the whole module, including comments and documentation that may be before the
// '[module' declaration.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

header position 0..67
module extraSpacesAfter
metamodel http://www.eclipse.org/emf/2002/Ecore (26..64) (0..78)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

header position 0..67
module extraSpacesAfter
metamodel http://www.eclipse.org/emf/2002/Ecore (26..64) (0..77)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[module extraSpacesAfter('http://www.eclipse.org/emf/2002/Ecore')/]

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

header position 11..79
module extraSpacesBefore
metamodel http://www.eclipse.org/emf/2002/Ecore (38..76) (11..79)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

header position 10..78
module extraSpacesBefore
metamodel http://www.eclipse.org/emf/2002/Ecore (37..75) (10..78)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

[module extraSpacesBefore('http://www.eclipse.org/emf/2002/Ecore')/]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[module extraSpacesAfter('http://www.eclipse.org/emf/2002/Ecore')/]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[module extraSpacesBefore('http://www.eclipse.org/emf/2002/Ecore')/]

0 comments on commit aaaf1f3

Please sign in to comment.