mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
Fix Hex Constants
* module/language/ecmascript/tokenize.scm: hexadecimal constants can now use 'X' in addition to 'x'. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
110f652127
commit
326298206a
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@
|
|||
(c1 (peek-char port)))
|
||||
(cond
|
||||
((eof-object? c1) (digit->number c0))
|
||||
((and (char=? c0 #\0) (char=? c1 #\x))
|
||||
((and (char=? c0 #\0) (or (char=? c1 #\x) (char=? c1 #\X)))
|
||||
(read-char port)
|
||||
(let ((c (peek-char port)))
|
||||
(if (not (char-hex? c))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue