Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1748

provide a way to "comment" a line in predicate language

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.4.0.Final
    • 2.1.3.Final
    • Predicate Language
    • None

      Having done a lot of experimentation with Undertow's predicate language, I often times find my self with a text file full of predicates/handlers that is being parsed by my server and I want to bypass or remove a rule for testing.  Add a method to "comment" out a line.  Suggestions:

      run-me() -> all-day-long()
      # skip-me() -> for-now()

      or

      run-me() -> all-day-long()
      // skip-me() -> for-now()
      

      The implementation would simply require the parser to ignore any lines starting with the comment character.  Ensure the comment character can never be part of the start of an actual predicate or handler name.  (Note, even though I put a space above after the comment character(s), I would not want it to be required)

       

      Mutli-line comments might be nice, but are more complicated so I'm fine with just implementing a single-line comment char.

              rhn-cservice-bbaranow Bartosz Baranowski
              bdw429s Brad Wood
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: