Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit 2228076

Browse files
authored
Merge pull request #1478 from benbjohnson/pql-keys
peg: Allow single quoted key 'col'
2 parents 19b2bb3 + cc5e439 commit 2228076

File tree

3 files changed

+267
-226
lines changed

3 files changed

+267
-226
lines changed

pql/pql.peg

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ posfield <- <fieldExpr> { p.addPosStr("_field", buffer[begin:end]) }
5757
uint <- [1-9] [0-9]* / '0'
5858
uintrow <- <uint>{p.addPosNum("_row", buffer[begin:end])}
5959
col <- ( <uint> {p.addPosNum("_col", buffer[begin:end])}
60+
/ '\'' <singlequotedstring> '\'' {p.addPosStr("_col", buffer[begin:end])}
6061
/ '"' <doublequotedstring> '"' {p.addPosStr("_col", buffer[begin:end])}
6162
)
6263

0 commit comments

Comments
 (0)