]> ocean-lang.org Git - ocean/commitdiff
Scanner: minor text updates
authorNeilBrown <neil@brown.name>
Tue, 3 Jun 2014 11:17:57 +0000 (21:17 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 15 Jun 2014 05:40:03 +0000 (15:40 +1000)
Signed-off-by: NeilBrown <neil@brown.name>
csrc/scanner.mdc

index 05df51d4be5f2b04e5b37b8859bbcc4b938e978c..d15b44b88d200984552805d856d50e3ff8730e85 100644 (file)
@@ -90,7 +90,7 @@ The different tokens are numbers, words, marks, strings, comments,
 newlines, EOF, and indents, each of which is examined in detail below.
 
 There are various cases where no token can be found in part of the
-input.  All of these will be reported as an `TK_error` token.
+input.  All of these will be reported as a `TK_error` token.
 
 It is possible to declare a number of strings which form distinct
 tokens (rather than being grouped as e.g. 'word').  These are given
@@ -260,6 +260,9 @@ and the length of the list must be given (`known_count`).
 Tokens matching these known words are reported as the index of the
 list added to `TK_reserved`.
 
+If identifiers are ignored, then any work which is not listed as a
+known word results in an error.
+
 ###### token config parameters
        const char **words_marks;
        int known_count;