JetBrains/intellij-community — pull request #12 by gshakhn (2012-07-30 04:07:08+00:00)
Title: Fix JFlex's Action.GENERAL_LOOK lookahead option to work with --charAt and --sliceandcharat

The if block that handled Action.GENERAL_LOOK was assuming zzBufferL was an array and accessing zzBufferL.length and zzBufferL[]. If JFlex was used with the --charAt and --sliceandcharat options, the generated code would not compile since zzBufferL would be a CharSequence.

- Change the references to zzBufferL[] to call zzBufferLAccess instead. The latter handles the --charAt and --sliceandcharat options.
- Create a zzBufferLLength method that generates code to grab the length of zzBufferL. It handles --charAt and --sliceandcharat, similar to zzBufferLAccess.
- Rebuilt JFlex.jar by doing 'ant gettools build'.

I'm guessing JetBrains already has this fix internally since the checked in _GrooverLexer.java references zzBufferL.length() appropriately.