title: ANTLR - identifier with whitespace
body: <p>i want identifiers that can contain whitespace.</p>
  
  <pre><code>grammar WhitespaceInSymbols;
  
  premise :   ( options {greedy=false;} : 'IF' )  id=ID{
  System.out.println($id.text);
  };
  
  ID  :   ('a'..'z'|'A'..'Z')+ (' '('a'..'z'|'A'..'Z')+)* 
  ;
  
  WS  :   ' '+ {skip();}
  ;
  </code></pre>
  
  <p>When i test this with "IF statement analyzed" i get a MissingTokenException and the output "IF statement analyzed".<br>
  I thought, that by using greedy=false i could tell ANTLR to exit afer 'IF' and take it as a token. But instead the IF is part of the ID. 
  Is there a way to achieve my goal? I already tried some variations of the greed=false-option, but without success.</p>