Improved error messages on incorrect module name. Issue #209

This commit is contained in:
Christoffer Lerno
2021-07-17 15:20:13 +02:00
parent 429fb647fb
commit 1af27136fa
8 changed files with 47 additions and 2 deletions

View File

@@ -0,0 +1 @@
module big::MONEY; // #error: The elements of a module path must consist of only lower

View File

@@ -0,0 +1 @@
module abc::&&; // #error: Each '::' must be followed by a regular lower case sub module name

View File

@@ -0,0 +1 @@
module abc::if::while; // #error: The module path cannot contain a reserved keyword, try another name

View File

@@ -0,0 +1 @@
module BIG::MONEY; // #error: The module name must consist of only lower case letters

View File

@@ -0,0 +1 @@
module &&; // #error: 'module' should be followed by a module name

View File

@@ -0,0 +1 @@
module if::hello; // #error: The module name cannot contain a reserved keyword