Project

General

Profile

Bug #11250

Tilde is not duplicating the next character.

Added by Octavian Adrian Gavril 5 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:
4GL Preprocessor

Related issues

Related to Testing - Support #6859: preprocessor tests Test
Related to Conversion Tools - Bug #10988: Extra quote is not generated during preprocessing when alternative for two quotes/apostrophes is used. New

History

#1 Updated by Octavian Adrian Gavril 5 months ago

When the keepTildes property is set to true, the expected behavior is for the tilde to duplicate the next character as it does in OE. This functionality is currently failing.

This behavior was identified during the execution of string concatenation tests from the preprocessor test suite. (committed in testcases/1828). These are the differences compared to OE:

--- /testcases/tests/conversion/preprocessor/support/baseline/string_concatenation.p.preproc    2026-02-23 14:30:46.424783852 +0200
+++ /testcases/cvt/tests/conversion/preprocessor/support/string_concatenation.p.keeptildes.preproc    2026-02-23 15:23:08.333224506 +0200
@@ -25,7 +25,7 @@
 MESSAGE "5. Mixed/Varied-Space:" a VIEW-AS ALERT-BOX.

 /* 6. Extreme Mixed / No Spacing (Lexer Stress) */
-a = '|'+"A"+"|"+'~nn'.
+a = '|'+"A"+"|"+'~n'.
 MESSAGE "6. Mixed/No-Space:" a VIEW-AS ALERT-BOX.

 /* 7. The Alternator (Switching delimiters with wide gaps) */
@@ -50,7 +50,7 @@
 MESSAGE "11. Format Mixed/Mixed-Space:" a VIEW-AS ALERT-BOX.

 /* 12. Format Tight Mixed (Lexer Stress) */
-a=string(9,">>>>9")+'|'+b+'~nn'.
+a=string(9,">>>>9")+'|'+b+'~n'.
 MESSAGE "12. Format Tight Mixed:" a VIEW-AS ALERT-BOX.

@@ -59,23 +59,23 @@
 /* 13. Variant: Original with Tilde and Space */
 display
    "A:" when l
-   "B"~   at 36
+   "B"~  at 36
    with frame f1 title "Test 13: Original Display".

 /* 14. Variant: Single Quotes and No-Space between string and attribute */
 display
    'A:'when l
-   'B'~  at 36
+   'B'~ at 36
    with frame f2 title "Test 14: Sngl/No-Space".

 /* 15. Variant: Wide Whitespace between String and Keyword */
 display
    "A:"       when l
-   'B'~        at 36
+   'B'~       at 36
    with frame f3 title "Test 15: Wide-Space Display".

 /* 16. Variant: The Chaos Display (Tilde touching the attribute) */
 display
    "A:"  when l
-   'B'~aat 36
+   'B'~at 36
    with frame f4 title "Test 16: Chaos Spacing".

#2 Updated by Octavian Adrian Gavril 5 months ago

#3 Updated by Octavian Adrian Gavril 5 months ago

  • Related to Bug #10988: Extra quote is not generated during preprocessing when alternative for two quotes/apostrophes is used. added

#4 Updated by Greg Shah 5 months ago

  • topics 4GL Preprocessor added

Also available in: Atom PDF