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: GAS # style comments are not recognized #851

Open
lifenjoiner opened this issue Sep 7, 2024 · 2 comments
Open

ASM: GAS # style comments are not recognized #851

lifenjoiner opened this issue Sep 7, 2024 · 2 comments

Comments

@zufuliu
Copy link
Owner

zufuliu commented Sep 7, 2024

} else if (sc.ch == '#') {
if (IsCppInDefine(styler, sc.currentPos)) {
sc.SetState(SCE_ASM_OPERATOR);
if (sc.chNext == '#')
sc.Forward();
} else if (IsADigit(sc.chNext) || (sc.chNext == '$' && IsHexDigit(sc.GetRelative(2)))) {
sc.SetState(SCE_ASM_NUMBER);
} else if (IsAsmWordStart(sc.chNext)) {
sc.SetState(SCE_ASM_IDENTIFIER);
} else {
char pp[64];
const Sci_Position pos = LexSkipSpaceTab(styler, sc.currentPos + 1, endPos);
const Sci_PositionU len = LexGetRange(styler, pos, iswordstart, pp, sizeof(pp));
if (kwProprocessor.InList(pp)) {
sc.SetState(SCE_ASM_PREPROCESSOR);
sc.Advance(pos - sc.currentPos + len);
if (StrEqual(pp, "include")) {
isIncludePreprocessor = true;
if (!sc.atLineEnd)
sc.SetState(SCE_ASM_STRING);
} else if (StrEqualsAny(pp, "error", "warning", "message")) {
if (!sc.atLineEnd)
sc.SetState(SCE_ASM_STRING);
} else {
sc.ForwardSetState(SCE_ASM_DEFAULT);
}
} else
sc.SetState(SCE_ASM_COMMENTLINE);
}

@zufuliu
Copy link
Owner

zufuliu commented Sep 7, 2024

## in rtlarch.S is fixed by e92cad9.

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

No branches or pull requests

2 participants