Prevent variables and numbers with spaces
Prevent variables and numbers with spaces

Because white spaces are suppressed, having the following rules:

number
   : MINUS? DIGIT + (POINT DIGIT +)?
   ;
DIGIT
   : ('0' .. '9')
   ;
MINUS
   : '-'
   ;
POINT
   : '.'
   ;
WS
   : [ \r\n\t] + -> channel (HIDDEN)
   ;
 will lead to the acceptance of numbers with spaces such 1 2 3
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4