comment is a token.

pull/70/head
Rob Rix 2016-02-18 10:46:48 +07:00
parent 3c52f85b18
commit 86bfd32b03
1 changed files with 1 additions and 1 deletions

@ -23,7 +23,7 @@ module.exports = grammar({
identifier: $ => seq(repeat(choice('@', '$')), /[a-zA-Z_][a-zA-Z0-9_]*/),
comment: $ => seq('#', /.*/),
comment: $ => token(seq('#', /.*/)),
_line_break: $ => '\n',
_terminator: $ => choice($._line_break, ';'),