summaryrefslogtreecommitdiff
path: root/src/token.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2023-01-23 15:42:25 -0800
committerMartin Michlmayr <tbm@cyrius.com>2023-01-25 11:20:08 +0800
commit35713fe79b767de79a44e3925db3536bc750c214 (patch)
tree33f3529a8428b42cf36952879382c79c898f57b4 /src/token.cc
parent0925eb53b4c94cff4843b6ed6e1c955d3ba1e2a0 (diff)
downloadfork-ledger-35713fe79b767de79a44e3925db3536bc750c214.tar.gz
fork-ledger-35713fe79b767de79a44e3925db3536bc750c214.tar.bz2
fork-ledger-35713fe79b767de79a44e3925db3536bc750c214.zip
Disallow numbers in function names
Diffstat (limited to 'src/token.cc')
-rw-r--r--src/token.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/token.cc b/src/token.cc
index 01ee2a18..148fbb10 100644
--- a/src/token.cc
+++ b/src/token.cc
@@ -133,7 +133,7 @@ void expr_t::token_t::parse_ident(std::istream& in)
int c;
char buf[256];
- READ_INTO_(in, buf, 255, c, length, std::isalnum(c) || c == '_');
+ READ_INTO_(in, buf, 255, c, length, std::isalpha(c) || c == '_');
value.set_string(buf);
}