-
Notifications
You must be signed in to change notification settings - Fork 93
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
New plugin for Janet language #161
base: master
Are you sure you want to change the base?
Conversation
. still incomplete
@@ -0,0 +1,685 @@ | |||
-- Support for the Fennel programming language: https://fennel-lang.org |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fennel? wasn't this for janet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the website? https://janet-lang.org/
you can switch to 'draft PR' to indicate that it is still WIP (work in progress) |
{ pattern = "-?%d+[%d%.]*", type = "number" }, | ||
{ pattern = "-?%.?%d+", type = "number" }, | ||
{ pattern = "%f[^(][^()'%s\"]+", type = "function" }, | ||
{ pattern = ":[%w_-/]*", type = "constant" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:[%w_%/-]*
seems to work
{ pattern = "-?%.?%d+", type = "number" }, | ||
{ pattern = "%f[^(][^()'%s\"]+", type = "function" }, | ||
{ pattern = ":[%w_-/]*", type = "constant" }, | ||
{ pattern = "nil", type = "literal" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nil
, true
and false
probably should be added to symbols field as they aren't patterns
you'll also want to edit |
. still incomplete