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

Allow # as a first character of a line to mean a comment like shell scripts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-1
    • lexer
    • None

    Description

      To be able to run nice shell scripts like this...

      #!/usr/bin/env groovy
      println("Hello world")

      the parser should treat '#' at the start of a line as being a comment. (This could be restricted to the first line only if need be - but heck, lets allow this as another comment format for now eh?)

      Attachments

        Activity

          People

            bob Bob Paulin
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: