changeset 32223:17529acb5248 stable

lex.ll: Remove `$` as an identifier character lex.ll: Remove `$` from list of valid identifier characters to make it consistent with `isvarname` and the Octave manual. Discussion: https://octave.discourse.group/t/is-the-dollar-sign-a-valid-variable-name-or-not/4725
author Arun Giridhar <arungiridhar@gmail.com>
date Tue, 01 Aug 2023 13:17:17 -0400
parents e039114b8a1a
children 592adc6b8901 6f9f2e2c2ae8
files libinterp/parse-tree/lex.ll
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Sat Jul 29 13:41:41 2023 +0200
+++ b/libinterp/parse-tree/lex.ll	Tue Aug 01 13:17:17 2023 -0400
@@ -366,7 +366,7 @@
 S       [ \t]
 NL      ((\n)|(\r)|(\r\n))
 CCHAR   [#%]
-IDENT   ([_$a-zA-Z][_$a-zA-Z0-9]*)
+IDENT   ([_a-zA-Z][_a-zA-Z0-9]*)
 FQIDENT ({IDENT}({S}*\.{S}*{IDENT})*)
 
 %{