85f246ab9c44 — Leonard Ritter 2 months ago
* changed string prefix symbols from `str:` to `prefix:`
2 files changed, 8 insertions(+), 2 deletions(-)

M src/lexerparser.cpp
M testing/test_parser.sc
M src/lexerparser.cpp +1 -1
@@ 863,7 863,7 @@ SCOPES_RESULT(ValueRef) LexerParser::par
             wrapped = it->second;
         } else {
             auto wrappedsym = ConstInt::symbol_from(
-                Symbol(String::join(String::from("str:"), sym.name())));
+                Symbol(String::join(String::from("prefix:"), sym.name())));
             prefix_symbol_map.insert({sym, wrappedsym});
             wrapped = wrappedsym;
         }

          
M testing/test_parser.sc +7 -1
@@ 12,10 12,16 @@ test ((typeof 0x111:u16) == u16)
 do
     # string literal prefix
 
-    inline str:<> (s)
+    inline prefix:<> (s)
         .. "<" s ">"
 
     test (<>"test" == "<test>")
     test (<>"test" == "<test>")
 
+    let S =
+        <>""""line1
+              line2
+              line3
+
+    test (S == "<line1\nline2\nline3\n>")
 ;