[Language Server] Support '@' keyword and expressions for COSMIC C Compilers #10830
github0null
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
The only option is to use some #if __INTELLISENSE__
#define COSMIC(x)
#else
#define COSMIC(x) x
#endif and wrap all the uses in that macro. You could file a feature request to add support for that, but it's unlikely that we would add it soon. It would require closed source changes to our IntelliSense parser. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, Everyone !
I've been using this plugin recently to help me write embedded programs for some microcontrollers (stm8...)
And i'm using the cosmic compiler: https://www.cosmicsoftware.com/index.php
And i'm using VSCode + cpptools as the code editor.
Most of the time this plugin works perfectly, but it won't be able to auto-complete code or trigger a hover when it encounters some special syntax.
I realized that this was because the plug-in could not understand non-standard syntax ('@' is a invalid token)
Is there any way to make cpptools blind to this syntax, just as it is to c comments ?
Because this syntax like a gcc attributes.
Or is it possible to support this syntax? If it's not too complicated, I can try to implement it myself
Or can you add support for this syntax ?
This is COSMIC C language Guide, most of the syntax is c99, with a few extensions:
COSMIC-CLanguage.pdf
Beta Was this translation helpful? Give feedback.
All reactions