title: How to handle inline comments?
body: <p>I've used antlr based on Presto grammar to parse SQL queries. 
  To define comments I've used: </p>
  
  <pre><code>SIMPLE_COMMENT
      : ('--'|'#') ~[\r\n]* '\r'? '\n'? -&gt; channel(HIDDEN)
      ;
  </code></pre>
  
  <p>And this works ok when the comment is at the beginning of the line. But when the comment isn't in the beginning of the line it's not ignored. </p>
  
  <p>for example when I have a query like: </p>
  
  <pre><code>SELECT * 
  FROM table1--comment 
  </code></pre>
  
  <p>I'm not ignoring the "---comment". </p>
  
  <p>Any idea how to fix this? </p>
  
  <p>Thanks,
  Nir. </p>