From 914856342ce02d23bfa2424eb06da6d644e9e946 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sun, 11 Oct 2020 01:57:27 +0200 Subject: [PATCH] Fix incorrect documentation of accepted sym names No, they cannot start with a digit! --- src/asm/rgbasm.5 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/asm/rgbasm.5 b/src/asm/rgbasm.5 index 872b0814..3c6f4bba 100644 --- a/src/asm/rgbasm.5 +++ b/src/asm/rgbasm.5 @@ -743,10 +743,16 @@ code that can be invoked later. String symbol that can be evaluated, similarly to a macro. .El .Pp -Symbol names can contain letters, numbers, underscores, hashes and +Symbol names can contain letters, numbers, underscores +.Sq _ , +hashes +.Sq # +and at signs .Sq @ . -However, they must begin with either a letter, a number, or an underscore. -Periods are allowed exclusively for labels, as described below. +However, they must begin with either a letter, or an underscore. +Periods +.Sq \&. +are allowed exclusively for labels, as described below. A symbol cannot have the same name as a reserved keyword. .Em \&In the line where a symbol is defined there must not be any whitespace before it , otherwise