Skip to content
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

ASM will not end after '#' #645

Open
1 task done
yyjdelete opened this issue Oct 8, 2023 · 0 comments
Open
1 task done

ASM will not end after '#' #645

yyjdelete opened this issue Oct 8, 2023 · 0 comments

Comments

@yyjdelete
Copy link

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

The code with a problem is:

void xxx(void)
{
    asm volatile(
        "TST   lr, #0x4\n"
        "ITE   EQ\n"
        "MRSEQ r1, MSP\n"
        "MRSNE r1, PSP\n"
        ::: "r1");
    asm volatile(
        "LDR   r0, [r1, #24]\n"
        ::: "r0", "r1");
}

It looks like:

image

It should look like:

#number is a vaild format of const number in arm asm instead of comment, and at lastest asm highlight should end normally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant