Menu

#28 java compliant line and column counting

jflex
open
generator (17)
5
2013-03-11
2013-03-11
No

It would be nice to have an option to switch line and column counting into a mode that will only count \n and \r\n as new lines. I didnt't find an editor that handles the unicode line breaks correctly anyway and i am trying to write a java compliant lexer.

mfG Michael

Discussion

  • Michael Kussmann

    actually java regards a sole \r as new line aswell

     
  • Michael Kussmann

    patch against the latest svn revision (623)

     
  • Michael Kussmann

    patch against the current release 1.4.3 to add a switch %javanl that switches to java compliant new line mode

     
MongoDB Logo MongoDB