Set the ParsingException cause to another string when no identifier is given to a class, and pass the component's line to the exception
This commit is contained in:
		
							parent
							
								
									95d6b2239a
								
							
						
					
					
						commit
						08a038cf82
					
				| @ -37,7 +37,7 @@ namespace Parser { | ||||
|                     if (current.toktext == "class") { | ||||
|                         if (next.toktype == IDENTIFIER) { | ||||
|                             parseTree << Class(next.toktext); ++i; | ||||
|                         } else throw ParsingException('"' + next.toktext + "\" is not a valid class identifier"); | ||||
|                         } else throw ParsingException((not next.toktext.empty()) ? '"' + next.toktext + "\" is not a valid class identifier" : "A class identifier is required", next.line); | ||||
|                     } else { | ||||
|                         if ((lexed.size() - i) > 2) { | ||||
|                             bool isFinalDefine = nextAre(2, TAG, DEFINE); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user