From b18f8fe40234a51e245879341cc393751f4ef7ef Mon Sep 17 00:00:00 2001 From: s-ol Date: Mon, 4 Aug 2025 23:00:54 +0200 Subject: fix repeated chars in symbol regex in docs and code --- docs/reference/01_syntax.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/reference') diff --git a/docs/reference/01_syntax.md b/docs/reference/01_syntax.md index 078ca3a..445725c 100644 --- a/docs/reference/01_syntax.md +++ b/docs/reference/01_syntax.md @@ -61,10 +61,11 @@ The following are all valid symbols: _test foo$ -The regular expression `[a-zA-Z\-+*\/_.,=!?%$~><][a-zA-Z0-9\-+*\/_.,=!?%$~><]*` matches all symbols. +The regular expression `[a-zA-Z\-_+*^%\/.,=~!?$><][a-zA-Z0-9\-_+*^%\/.,=~!?$><]*` +matches all symbols. # cells -Cells consist of any number of subexpressions separated by chunks of whitespace +Cells consist of one or more subexpressions separated by chunks of whitespace and enclosed in parentheses (`(` and `)`). A cell optionally contains a tag immediately after the opening parenthesis. Whitespace between the opening parenthesis and the first subexpression or the closing parenthesis and the last -- cgit v1.2.3