Skip to content

Commit db11003

Browse files
committed
allow array notation in adentifiers
Signed-off-by: yaacov <[email protected]>
1 parent 37d06a0 commit db11003

File tree

3 files changed

+169
-146
lines changed

3 files changed

+169
-146
lines changed

v6/pkg/parser/tsl_lexer.l

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ RFC3339 {DATE}T{TIME}(Z|{TIME_OFFSET})
5858

5959
/* Identifier patterns */
6060
ID_START {LETTER}|{UNDERSCORE}
61+
ARRAY_SUFFIX (\[[0-9]+\]|\[\*\])
6162
ID_CONT {LETTER}|{DIGIT}|{UNDERSCORE}|[./]
62-
IDENTIFIER {ID_START}{ID_CONT}*
63+
ID_PART ({ID_CONT}|{ARRAY_SUFFIX})*
64+
IDENTIFIER {ID_START}{ID_PART}
6365

6466
/* Numeric patterns */
6567
INTEGER [+-]?{DIGIT}+

0 commit comments

Comments
 (0)