Add comments
This commit is contained in:
parent
bc06816b57
commit
26b6891160
5 changed files with 250 additions and 69 deletions
|
|
@ -3,6 +3,7 @@ module.exports = grammar({
|
|||
|
||||
extras: ($) => [
|
||||
/\s+/,
|
||||
$.comment,
|
||||
],
|
||||
|
||||
rules: {
|
||||
|
|
@ -12,6 +13,8 @@ module.exports = grammar({
|
|||
$.assignment,
|
||||
),
|
||||
|
||||
comment: (_) => seq("#", /.*/),
|
||||
|
||||
// Definitions {{{
|
||||
|
||||
assignment: ($) => seq(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue