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