Skip to content

Commit 94fe416

Browse files
authored
Merge pull request #16 from lark-parser/bugfix14
Bugfix for UnexpectedToken.expected: fixed isupper() implementation (issue #14)
2 parents 1555889 + cc67de3 commit 94fe416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larkjs/lark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function list_repeat(list, count) {
306306
}
307307

308308
function isupper(a) {
309-
return /^[A-Z]*$/.test(a);
309+
return /^[A-Z_$]*$/.test(a);
310310
}
311311

312312
function rsplit(s, delimiter, limit) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy