Skip to content

Commit

Permalink
allow to start comments with ';' to make it easier to re-use Clojure …
Browse files Browse the repository at this point in the history
…syntax highlighting with Rudi
  • Loading branch information
xrstf committed Jan 3, 2024
1 parent abc2162 commit 9f297c8
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 43 deletions.
2 changes: 1 addition & 1 deletion pkg/lang/grammar/rudi.peg
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ HexDigit <- [0-9a-f]i
//////////////////////////////////////////////////////////
// comments

SingleLineComment ← "#" ( !EOL . )*
SingleLineComment ← ( "#" / ";" ) ( !EOL . )*

//////////////////////////////////////////////////////////
// misc
Expand Down
95 changes: 53 additions & 42 deletions pkg/lang/parser/generated.go

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

0 comments on commit 9f297c8

Please sign in to comment.