Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 6fa67b9

Browse files
authored
fix lu validation bugs for empty comments and single curly bracket (#763)
* fix lu parser validation issue for empty comments * fix lu parser validation to allow single cruly bracket in utterance
1 parent 4eb7acc commit 6fa67b9

File tree

5 files changed

+392
-376
lines changed

5 files changed

+392
-376
lines changed

packages/lu/src/parser/lufile/LUFileLexer.g4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ MODEL_INFO
5454
;
5555

5656
COMMENT
57-
: WS* '>' ~('\r'|'\n')+ -> skip
57+
: WS* '>' ~('\r'|'\n')* -> skip
5858
;
5959

6060
QNA
@@ -191,7 +191,7 @@ EXPRESSION
191191
;
192192

193193
TEXT
194-
: ~[ \t\r\n{\\}]+
194+
: ~[ \t\r\n\\]+?
195195
;
196196

197197
mode ENTITY_MODE;

0 commit comments

Comments
 (0)