Hi, There's getTabSize/setTabSize methods in the CharScanner class. You can use that to set the size. Although you still have to call tab() from within your lexer to 'count' the tabs. Cheers, Ric