File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
UnrealAngelscriptParser/Grammar Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,9 @@ public void FunctionModifier(string modifier)
6060 [ DataRow ( "float64" , "0.0" ) ]
6161 [ DataRow ( "doublt" , "0.0" ) ]
6262 [ DataRow ( "bool" , "false" ) ]
63- [ DataRow ( "FName" , "n\" MyName\" " ) ] // https://angelscript.hazelight.se/scripting/fname-literals/
64- [ DataRow ( "string" , "f\" Formatted String: {L:0.1f}\\ u00B0\" " ) ] // https://angelscript.hazelight.se/scripting/format-strings/
63+ [ DataRow ( "string" , "\" \" \" \r \n multi line string\r \n \" \" \" " ) ] // heredoc: https://www.angelcode.com/angelscript/sdk/docs/manual/doc_datatypes_strings.html
64+ [ DataRow ( "FName" , "n\" MyName\" " ) ] // FName Literals: https://angelscript.hazelight.se/scripting/fname-literals/
65+ [ DataRow ( "string" , "f\" Formatted String: {L:0.1f}\\ u00B0\" " ) ] // Formatted Strings: https://angelscript.hazelight.se/scripting/format-strings/
6566 public void DataType ( string type , string value )
6667 {
6768 ParseScript ( $ "{ type } VAR = { value } ;") ;
Original file line number Diff line number Diff line change @@ -24,7 +24,11 @@ FloatingLiteral:
2424// https://angelscript.hazelight.se/scripting/format-strings/
2525fragment Angelscriptstringprefix: ' n' | ' f' ;
2626
27- StringLiteral : (Encodingprefix | Angelscriptstringprefix)? (Rawstring | ' "' Schar* ' "' );
27+ // Angelscript Heredoc string literals
28+ // https://www.angelcode.com/angelscript/sdk/docs/manual/doc_datatypes_strings.html
29+ fragment HeredocString: ' """' .*? ' """' ;
30+
31+ StringLiteral : (Encodingprefix | Angelscriptstringprefix)? (HeredocString | Rawstring | ' "' Schar* ' "' );
2832
2933BooleanLiteral : False | True;
3034
You can’t perform that action at this time.
0 commit comments