-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Added support for Carbon Syntax Highlighting #8908
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
Conversation
Please check off all the items in the list, it’s there for a reason ;) https://github.com/wbond/package_control_channel/blob/master/.github/PULL_REQUEST_TEMPLATE.md |
Ok, I'm adding them, and also making a new repo for this. |
@packagecontrol-bot please check this PR for inclusion |
😂😂😂😂 I don't think package control bot works this way, How to use package control bot? |
Um, can you please tell me why is this happening? and how to fix it? |
Is the error fixed now? |
Yeah, uh, where to start 😅 Don't take this the wrong way, but there is some work left to do for this to work.
You did not, or forgot to push a tag. That's the main issue, without a tag, package control can't download your package, and not test it, resulting in the error you're seeing here.
If your package support the Carbon Language (I'm guessing that's the one), please just call it "Carbon Language". A language support package in Sublime Text unlocks not just "colors" but also goto definition, symbol lists, folding, completion, etc. etc. It's not a "code colorizer". That's why we have that instruction in there: just name your package after the language and don't try to put all its features in the name. Futhermore, don't put a package.json in your package. Your package description in this PR right here, nothing else is needed. Finally, your package contains various JSON files but no syntax files that Sublime Text understands. The tmLanguage json could be converted into a tmLanguage file probably. But instead of going down that (admittedly quite ancient) route, why not get with the times and write your syntax using Sublime Text's sublime-syntax format? As for the syntax itself it looks basic, but workable. But many scopes are missing the It almost looks like you're trying to create a VS Code package here? Or maybe converting from one? |
Yes, you are correct I was trying to convert a vscode package to sublime text package. My package is just a code colorizer "a syntax highligher" it doesn't provide any lsp/goes to definitions. |
Yes it does actually. Sublime Text uses your syntax to provide those features. Not via an LSP, but still. That’s my point, in ST “code colorizer” really is a misnomer. |
yes, is there a way to test this locally at my computer? |
Sure, anything you place in the Packages directory are immediately loaded and hot-reloaded, so you can easily develop that way. Relevant documentation, including examples:
Help can be got at the forum and Discord channel. |
Ok braver, I have made some changes, please tell me if this needs any corrections. |
Idk why @packagecontrol-bot is giving these errors. |
Still this:
|
I have made a release 1.0.0 |
Yes, it worked. |
Braver, once you are done with the checks, from my side, I think all the changes have been made and this pr is ready to be merged. Thanks for guiding me. |
And if you find any other issues, please let me know |
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.
Automated testing result: WARNING
Repo link: Carbon Programming Language
Results help
Packages added:
- Carbon Programming Language
Processing package "Carbon Programming Language"
- WARNING: '.sublime-syntax' support has been added in build 3092 and there is no '.tmLanguage' fallback file
- File: carbon.sublime-syntax
Good job, LGTM! 👍🏻 |
Thanks alot 😊 |
@packagecontrol-bot
My package is a syntax highlighter for the carbon programming language
There are no packages like it in Package Control.