Skip to content

Commit 1a2465a

Browse files
committed
Updated docs
1 parent 5b92db1 commit 1a2465a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
of only supporting one ``pyscript`` interface. This simplifies future maintenance.
1414
* No longer supporting C-style comments. Hash (#) is the only valid comment marker.
1515
* No longer supporting comments embedded in a command. Only command line input where the first
16-
non-whitespace character is a # will be treated as a comment.
16+
non-whitespace character is a # will be treated as a comment. This means any # character appearing
17+
later in the command will be treated as a literal. The same applies to a # in the middle of a multiline
18+
command, even if it is the first character on a line.
1719
* \# this is a comment
1820
* this # is not a comment
1921

docs/freefeatures.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Comments
3030
========
3131

3232
Any command line input where the first non-whitespace character is a # will be treated as a comment.
33+
This means any # character appearing later in the command will be treated as a literal. The same
34+
applies to a # in the middle of a multiline command, even if it is the first character on a line.
35+
3336
Comments can be useful in :ref:`scripts`, but would be pointless within an interactive session.
3437

3538
::

0 commit comments

Comments
 (0)