Skip to content

Commit

Permalink
Oops, fix an error than still referenced "~ include" syntax and updat…
Browse files Browse the repository at this point in the history
…e documentation
  • Loading branch information
joethephish committed Mar 10, 2016
1 parent de14681 commit b7cec83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Documentation/WritingWithInk.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ The compiler will warn you if ambiguous names are used.

You can also split your content across multiple files, using an include statement.

~ include newspaper.ink
~ include cities/vienna.ink
~ include journeys/orient_express.ink
INCLUDE newspaper.ink
INCLUDE cities/vienna.ink
INCLUDE journeys/orient_express.ink

Include statements should always go at the top of a file, and not inside knots.

Expand Down
2 changes: 1 addition & 1 deletion inklecate/InkParser/InkParser_Logic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected Parsed.Object LogicLine()
}

else {
Error ("Logic following a '~' can't be that type of expression. It can only be something like:\n\t~ include ...\n\t~ return\n\t~ var x = blah\n\t~ x++\n\t~ myFunction()");
Error ("Logic following a '~' can't be that type of expression. It can only be something like:\n\t~ return\n\t~ var x = blah\n\t~ x++\n\t~ myFunction()");
}
}

Expand Down

0 comments on commit b7cec83

Please sign in to comment.