Menu

#1952 ::RESOURCE delimiter not free-form or case-insensitive

None
invalid
nobody
None
none
1
2024-07-11
2024-07-10
No

ooRexx (64bit): 5.1.0 (r12838) and 5.0.0 (r12227)
On: Linux 6.9.1-arch1-1

Space before "::END" deliminator:

say .resources~Text

::resource Text
    Line 1
      Line 2
    ::END

Small letters for deliminator:

say .resources~Text

::resource Text
    Line 1
      Line 2
::End

Both lead to the same output:

Error 99.943:  Missing ::RESOURCE end marker "::END" for resource "TEXT".

The following example leads to a similar undesirable result:

say .resources~Text

::resource Text end "-"
    Line 1
      Line 2
    ------------------

The deliminator should be recognized regardless of the space before it or the capitalization.

Discussion

  • Rick McGuire

    Rick McGuire - 2024-07-10
    • status: open --> invalid
    • Group: 5.1.0 --> None
     
  • Rick McGuire

    Rick McGuire - 2024-07-10

    From the documentation:

    The terminating resource end delimiter must start in the first column and is case-sensitive. Any text following on the same line as the terminating delimiter is ignored.

    This is working as designed and documented, so this is not a bug. These rules are specifically to reduce the chances that text in the resource block does not get recognized as being the terminator.

     
  • Till Winkler

    Till Winkler - 2024-07-11

    Sorry for the inattention and thanks for the explanation! It was just an unexpected behavior, but it makes sense now.

     

Anonymous
Anonymous

Add attachments
Cancel