Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Pyret #3

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ Prolog
Protobuf
PSL
PureScript
Pyret
Python
Qcl
Qml
Expand Down
6 changes: 6 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,12 @@
"mime": ["text/x-python"],
"extensions": ["py", "pyw"]
},
"Pyret": {
"line_comment": ["#"],
"multi_line_comments": ["#|", "|#"],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"multi_line_comments": ["#|", "|#"],
"multi_line_comments": ["#|", "|#"],
"nested": true,

As I discovered with 8th, you have to tell tokei that your language supports nested multiline comments.

"quotes": [["\\\"", "\\\""], ["'", "'"]],
"extensions": ["arr"]
},
"Q": {
"name": "Q",
"nested": true,
Expand Down
1 change: 1 addition & 0 deletions scheme
Submodule scheme added at 480dc2
22 changes: 22 additions & 0 deletions tests/data/pyret.arr
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//! 22 lines 8 code 3 comments 6 blanks

fun single-quote():
doc: "this is a documentation string"
'foo'
end

#|
Hello, this is a multiline message
|#

# This is a line message

fun double-quotes():
"bar"
end

nested = #|
doesn't start yet
or yet
|#
"nested"
Loading