mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 12:56:42 +00:00 
			
		
		
		
	Issue #694: allow float literals starting with .
This commit is contained in:
		
							parent
							
								
									af191c7382
								
							
						
					
					
						commit
						e2620a1edf
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		|  | @ -372,7 +372,18 @@ namespace Compiler | |||
|         else if (c==')') | ||||
|             special = S_close; | ||||
|         else if (c=='.') | ||||
|         { | ||||
|             // check, if this starts a float literal
 | ||||
|             if (get (c)) | ||||
|             { | ||||
|                 putback (c); | ||||
| 
 | ||||
|                 if (std::isdigit (c)) | ||||
|                     return scanFloat ("", parser, cont); | ||||
|             } | ||||
| 
 | ||||
|             special = S_member; | ||||
|         } | ||||
|         else if (c=='=') | ||||
|         { | ||||
|             if (get (c)) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue