syntax: add note to #! docs
parent
2cf8b32bda
commit
7ac7adeb67
|
@ -659,7 +659,14 @@ HELP: !
|
||||||
HELP: #!
|
HELP: #!
|
||||||
{ $syntax "#!comment..." }
|
{ $syntax "#!comment..." }
|
||||||
{ $values { "comment" "characters" } }
|
{ $values { "comment" "characters" } }
|
||||||
{ $description "Discards all input until the end of the line." } ;
|
{ $description "Discards all input until the end of the line." }
|
||||||
|
{ $notes "To allow Unix-style \"shebang\" scripts to work as expected, " { $snippet "#!" } " is parsed as a separate token regardless of following whitespace if it appears at the beginning of a line."
|
||||||
|
{ $example
|
||||||
|
"#!/usr/bin/env/factor"
|
||||||
|
"USING: io ;"
|
||||||
|
"\"Hello world\" print"
|
||||||
|
"Hello world"
|
||||||
|
} } ;
|
||||||
|
|
||||||
HELP: NAN:
|
HELP: NAN:
|
||||||
{ $syntax "NAN: payload" }
|
{ $syntax "NAN: payload" }
|
||||||
|
|
Loading…
Reference in New Issue