Skip to content

Commit

Permalink
GH-529 Support backquote sequences (Resolve #529)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk committed Jul 6, 2020
1 parent ce90064 commit 09bad24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tests/current_test.panda
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import java.lang.Thread
// main statement is called when the script is launched
main {
// create Test instance, then call its method and finally print content of testField
Test test = new Test('"Constructor"')
Test test = new Test(`'"Constructor"'`)
test.echo("Method echo")
log test.getTestField().testField

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public final class Sequences {

public static final Sequence RAW_STRING = add(VALUES, new Sequence("String", "'"));

public static final Sequence LANG_STRING = add(VALUES, new Sequence("String", "`"));

public static final Sequence LINE_ORIENTED_COMMENT = add(VALUES, new Sequence("Comment", "//", "\n"));

public static final Sequence BLOCK_ORIENTED_COMMENT = add(VALUES, new Sequence("Comment", "/*", "*/"));
Expand Down

0 comments on commit 09bad24

Please sign in to comment.