vscode-arm
vscode-arm copied to clipboard
Feature request: Support c-style inline assembly
Would it be possible to enhance this plugin to support c-style inline assembly?
For example, #define, #include, #if, #ifdef, #else, #elif, #endif, defined().
Also, comments that begin with a double slash ("//") and the line continuation backslash ("") at the end of a line.
Here is an example of such code: https://github.com/zephyrproject-rtos/zephyr/blob/master/arch/arm/core/cpu_idle.S#L31
Thanks for the comment! I can absolutely take a look at adding those. I’ll try and find time over the next few weeks.
I've added the C-style preprocessing instructions (v0.7.0). Comments beginning with \\
should already be captured, I've not added the continuation backslash yet as that is pending quite a big rewrite - I need to go through the whole set of original grammars and make it more intelligent rather than just being greedy and checking for direct matches!