vscode-arm icon indicating copy to clipboard operation
vscode-arm copied to clipboard

Feature request: Support c-style inline assembly

Open sslupsky opened this issue 5 years ago • 2 comments

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

sslupsky avatar Nov 19 '19 20:11 sslupsky

Thanks for the comment! I can absolutely take a look at adding those. I’ll try and find time over the next few weeks.

dan-c-underwood avatar Nov 19 '19 20:11 dan-c-underwood

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!

dan-c-underwood avatar Dec 14 '19 19:12 dan-c-underwood