Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle comments properly in ws.
  • Loading branch information
arnsholt committed Sep 25, 2013
1 parent d52d2b8 commit 0f9e071
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NQPy/Grammar.nqp
Expand Up @@ -14,7 +14,8 @@ token NEWLINE { <.ws> [\n | $] }

### 2.1.9: Whitespace between tokens
token wsc { <[\ \t\f]> }
token ws { <!ww> <.wsc>* || <.wsc>+ ['#' \N+ | \\ \n <.wsc>*] }
# TODO: Line joining with backslash
token ws { <!ww> <.wsc>* ['#' \N+]? || <.wsc>+ ['#' \N+]? }

## 2.3: Identifiers and keywords
# TODO: xid_start/xid_continue, which is defined as anything that is
Expand Down

0 comments on commit 0f9e071

Please sign in to comment.