Skip to content

Commit

Permalink
✨ Added block comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mationai committed Aug 10, 2022
1 parent a4b8f94 commit 9540b57
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dist/index.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -4523,8 +4523,9 @@ var grammar = `mationGrammar {
/* It's a backtick, which is used to create a code block. */
comment = "//" (~nl any)* (nl | end)
blockComment = "/*" (~"*/" any)* "*/"
nl = "\\n" | "\\r\\n"
space += ws | nl | comment
space += ws | nl | comment | blockComment
identifier = ~reservedWord identName
identName = identStart identPart*
Expand Down
3 changes: 2 additions & 1 deletion dist/index.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mation-spec",
"version": "0.1.7",
"version": "0.2.0",
"description": "Readable Configuration Specification Format for Automation and Task Runners",
"packageManager": "[email protected]",
"main": "./dist/index.umd.js",
Expand Down
3 changes: 2 additions & 1 deletion src/mationGrammar.ohm
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ mationGrammar {

/* It's a backtick, which is used to create a code block. */
comment = "//" (~nl any)* (nl | end)
blockComment = "/*" (~"*/" any)* "*/"
nl = "\n" | "\r\n"
space += ws | nl | comment
space += ws | nl | comment | blockComment

identifier = ~reservedWord identName
identName = identStart identPart*
Expand Down

0 comments on commit 9540b57

Please sign in to comment.