-
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
Add syntax highlighting for The Icon Programming Language #3229
base: master
Are you sure you want to change the base?
Conversation
runtime/syntax/icon.yaml
Outdated
- symbol.operator: "([.:;,+*|=!\\%@\\^\\?]|<|>|/|-|&)" | ||
- symbol.brackets: "[(){}]|\\[|\\]" | ||
- constant.number: "(\\b([1-9][0-9]*)\\b)" | ||
- constant.number: "(\\b([1-9][0-9]?(r|R)[0-9a-zA-Z]+)\\b)" | ||
- constant.number: "(\\b(([0-9]*[.][0-9]+|[0-9]+[.][0-9]*)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)\\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.
Some of the parens are unnecessary
- symbol.operator: "([.:;,+*|=!\\%@\\^\\?]|<|>|/|-|&)" | |
- symbol.brackets: "[(){}]|\\[|\\]" | |
- constant.number: "(\\b([1-9][0-9]*)\\b)" | |
- constant.number: "(\\b([1-9][0-9]?(r|R)[0-9a-zA-Z]+)\\b)" | |
- constant.number: "(\\b(([0-9]*[.][0-9]+|[0-9]+[.][0-9]*)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)\\b)" | |
- symbol.operator: "[.:;,+*|=!\\%@\\^\\?]|<|>|/|-|&" | |
- symbol.brackets: "[(){}\\[\\]]" | |
- constant.number: "\\b[1-9][0-9]*\\b" | |
- constant.number: "\\b[1-9][0-9]?(r|R)[0-9a-zA-Z]+\\b" | |
- constant.number: "\\b(([0-9]*[.][0-9]+|[0-9]+[.][0-9]*)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)\\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.
Removed unnecessary parens
rules: | ||
- constant.specialChar: "\\\\[bdeflnrtv'\\\"\\\\]" | ||
- constant.specialChar: "\\\\[0-7]{3}" | ||
- constant.specialChar: "\\\\x[0-9a-fA_F]{2}" |
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'm guessing this is a typo
- constant.specialChar: "\\\\x[0-9a-fA_F]{2}" | |
- constant.specialChar: "\\\\x[0-9a-fA-F]{2}" |
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.
Confirmed and corrected the typo.
Added file, runtime/syntax/icon.yaml, to provide syntax highlighting for The Icon Programming Language.
closes #3225