Skip to content

Commit fa8cc7a

Browse files
committed
Division/ratio: in regex require space around "PER", optional for "/"
see github comment #129 (comment)
1 parent 26629c4 commit fa8cc7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ per [Pp][Ee][Rr]
154154
return SHIFT;
155155
}
156156
157-
<INITIAL,ID_SEEN>{space}*({per}|"/"){space}* {
157+
<INITIAL,ID_SEEN>({space}+{per}{space}+|{space}*"/"{space}*) {
158158
BEGIN INITIAL;
159159
return DIVIDE;
160160
}

0 commit comments

Comments
 (0)