-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Added syntax for Bend programming language #3330
base: master
Are you sure you want to change the base?
Conversation
um, It has been a month, please respond whenever you are free. |
runtime/syntax/bend.yaml
Outdated
# constants (true, false, null, this) | ||
- constant: "\\b(true|false|True|False)\\b" | ||
# constants (types) | ||
- type: "\\b(ud|str|int|float|obj|fib|bool|pat|type|any)\\b\\??" |
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.
I tried looking at this file but I do not think these types are in Bend:
https://github.com/HigherOrderCO/Bend/blob/main/docs/builtins.md
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.
Sorry added -type thing, but can we keep true false? because people do use true false in bend by declaring this on their side.
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.
Sorry, I did not mean removing the pattern matching true
and false
but I realized there is null
and this
in the comment even though those are not highlighted. The types at the link I referenced can still be higlighted.
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.
ok, fixed that because the null
and this
isn't a actual type in bend afaik
runtime/syntax/bend.yaml
Outdated
# extra operators | ||
- symbol.operator: "(\\+|\\-|\\/|%|\\*|>>|<<|\\\\|\\^|&|~|!>)" | ||
# Comparision operators | ||
- symbol.operator: "(==|!=|<=?|>=?|\\bis\\b|\\?\\?)" |
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.
I tried looking at documentation and examples a bit but is the is
operator in Bend syntax?
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.
ok, I have removed is
I do not use Bend but I tried reviewing a bit. I do not think there is much people familiar with Bend using micro so I do not think the pull request can be easily accepted and merged. It may be better making a plugin and requesting to add it in @Neko-Box-Coder's plugin channel: |
No description provided.