Skip to content

Commit

Permalink
support newlines in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
jaffee committed Jul 3, 2018
1 parent 1af2517 commit f757e10
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 153 deletions.
7 changes: 3 additions & 4 deletions pql/pql.peg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type PQL Peg {
}


Calls <- whitesp (Call whitesp)* !.
Calls <- sp (Call sp)* !.
Call <- 'Set' {p.startCall("Set")} open col comma args (comma timestamp)? close {p.endCall()}
/ 'SetRowAttrs' {p.startCall("SetRowAttrs")} open posfield comma uintrow comma args close {p.endCall()}
/ 'SetColumnAttrs' {p.startCall("SetColumnAttrs")} open col comma args close {p.endCall()}
Expand Down Expand Up @@ -62,11 +62,10 @@ col <- ( <uint> {p.addPosNum("_col", buffer[begin:end])}

open <- '(' sp
close <- ')' sp
sp <- ( ' ' / '\t' )*
comma <- sp ',' whitesp
sp <- ( ' ' / '\t' / '\n' )*
comma <- sp ',' sp
lbrack <- '[' sp
rbrack <- sp ']' sp
whitesp <- ( ' ' / '\t' / '\n' )*
IDENT <- [[A-Z]] ([[A-Z]] / [0-9])*


Expand Down
Loading

0 comments on commit f757e10

Please sign in to comment.