Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-771

Lexer should return Comments and Whitespaces when demanded

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-10
    • 1.0-JSR-1
    • lexer
    • None

    Description

      Lexer currently swallows insignificant whitespace, insignificant newlines, single-line comments and multi-line comments.

      While these elements are not needed for code generation they are needed for other code inspections purposes like IDE-integration and pretty-priting.

      The idea would be to set flags on the lexer/parser whether to return these token types.

      Attachments

        Activity

          People

            codevise Dierk König
            codevise Dierk König
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: