# HG changeset patch # User Rik # Date 1544569446 28800 # Node ID 3c445cd7f1a43c4e720e62907d9a2398b065209c # Parent 368dc1142072c3e6d31c2d00e365aeed0e15cd0b Don't accept '$' as a valid character in variable names. * utils.cc (valid_identifier): Remove '$' from the list of characters accepted in a valid identifier. diff -r 368dc1142072 -r 3c445cd7f1a4 libinterp/corefcn/utils.cc --- a/libinterp/corefcn/utils.cc Tue Dec 11 13:14:09 2018 -0800 +++ b/libinterp/corefcn/utils.cc Tue Dec 11 15:04:06 2018 -0800 @@ -74,11 +74,11 @@ bool valid_identifier (const char *s) { - if (! s || ! (isalpha (*s) || *s == '_' || *s == '$')) + if (! s || ! (isalpha (*s) || *s == '_')) return false; while (*++s != '\0') - if (! (isalnum (*s) || *s == '_' || *s == '$')) + if (! (isalnum (*s) || *s == '_')) return false; return true;