diff options
| author | Drahflow <drahflow@gmx.de> | 2019-03-20 19:18:54 +0100 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2019-03-20 19:18:54 +0100 |
| commit | 36b1d920bc3cf46884ad7fb51106c3d7be29759a (patch) | |
| tree | 36acd61534c8b5e6204c75ba73aa4d68aab5cf9f /examples | |
| parent | 6eb8c52c6ec77515561e25db108ac4bedd9009a9 (diff) | |
Don't capture global scope in non-quoted }_
This becomes non-academic in case include is called
from non-global scope.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/working-compiler/include-and-macro.ey | 4 | ||||
| -rw-r--r-- | examples/working-compiler/include-and-macro.inc | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/examples/working-compiler/include-and-macro.ey b/examples/working-compiler/include-and-macro.ey new file mode 100644 index 0000000..4731678 --- /dev/null +++ b/examples/working-compiler/include-and-macro.ey @@ -0,0 +1,4 @@ +{ + /ok ==ok + "include-and-macro.inc" include +} * diff --git a/examples/working-compiler/include-and-macro.inc b/examples/working-compiler/include-and-macro.inc new file mode 100644 index 0000000..1730b76 --- /dev/null +++ b/examples/working-compiler/include-and-macro.inc @@ -0,0 +1 @@ +5 { dump ok dump }_ * |
