[antlr-interest] Tabs in browsable source files generated by doxygen

David-Sarah Hopwood david-sarah at jacaranda.org
Tue Aug 11 23:09:30 PDT 2009


The ANTLR source code is written with a tab stop distance of 4 and a
mixture of spaces and tabs, but doxygen seems to be assuming a tab stop
distance of 8 when generating the HTML for source code files.
This leads to ugliness such as the following example in
<http://www.antlr.org/api/Java/_common_token_stream_8java-source.html>:

00133         public void consume() {
00134                 if ( p<tokens.size() ) {
00135             p++;
00136                         p = skipOffTokenChannels(p); // leave p on
valid token
00137         }
00138     }

The fix for this is to put "TAB_SIZE = 4" in the doxygen config file
(see http://www.stack.nl/~dimitri/doxygen/config.html).

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com



More information about the antlr-interest mailing list