Add comments

This commit is contained in:
Bruno BELANYI 2024-04-07 22:20:57 +01:00
parent bc06816b57
commit 26b6891160
5 changed files with 250 additions and 69 deletions

View file

@ -3,6 +3,7 @@ module.exports = grammar({
extras: ($) => [
/\s+/,
$.comment,
],
rules: {
@ -12,6 +13,8 @@ module.exports = grammar({
$.assignment,
),
comment: (_) => seq("#", /.*/),
// Definitions {{{
assignment: ($) => seq(