title: How to match any non-newline character in ANTLR 4?
body: <p>I am wondering how to match a non-newline character in a grammar where a newline is a terminal in the hopes of using it to match, for instance, the title file that may contain numbers punctuation and so on. </p>
  
  <p>The grammar I am working with right now is:</p>
  
  <pre><code>grammar ABCHeaderNew;
  import Configuration;
  
  root: header EOF;
  
  header: index title; 
  index: 'X:' INDEX stop+;
  title: 'T:' TITLE stop+;
  
  INDEX: INTEGER+;
  TITLE: ANY+;
  
  stop: comment | NEWLINE; 
  comment: '%' ANY* NEWLINE;
  
  INTEGER: [0-9];
  NEWLINE: '\r'? '\n';
  ANY: ~(NEWLINE);
  
  WHITESPACE: [ \t]+ -&gt; skip;
  </code></pre>
  
  <p>This doesn't compile (error message: rule reference NEWLINE is not currently supported in a set). There are several other variations that I tried that do not work either. </p>
  
  <p>Does anyone know a good workaround?</p>