diff --git a/docs/source/programming.rst b/docs/source/programming.rst index 1b5a96500..8ee22501c 100644 --- a/docs/source/programming.rst +++ b/docs/source/programming.rst @@ -164,6 +164,11 @@ Values will usually be part of an expression or assignment statement:: byte counter = 42 ; variable of size 8 bits, with initial value 42 +Note that the various keywords for the data type and variable type (``byte``, ``word``, ``const``, etc.) +cannot be used as *identifiers* elsewhere. You can't make a variable, block or subroutine with the name ``byte`` +for instance. + + Special types: const and memory-mapped ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/source/syntaxreference.rst b/docs/source/syntaxreference.rst index a3c1e4ef0..9d34ffd2e 100644 --- a/docs/source/syntaxreference.rst +++ b/docs/source/syntaxreference.rst @@ -94,15 +94,14 @@ Directives You can import modules one at a time, and importing a module more than once has no effect. -.. data:: %saveregisters +.. data:: %option