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

Objective-C Language syntax highlighting doesn't know documentation comments #628

Closed
1 task done
alexr00 opened this issue Feb 23, 2023 · 2 comments
Closed
1 task done

Comments

@alexr00
Copy link

alexr00 commented Feb 23, 2023

Checklist

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

If Disabling that^ makes the problem go away, then follow this to make an issue on the C++ extension:
https://github.com/microsoft/vscode-cpptools/issues/new/choose

The code with a problem is:

/// This is a doc comment
int main(int argc, char **argv) {
	return 0;
}

It looks like:

Works correctly in C but not in Objective-C. Textmate scope for comments and documentation comments in Objective-C is both:

comment.line.double-slash.objc
meta.block.objc
source.objc

It should look like:

In a pure C file, the scope for a normal comment is:

comment.line.double-slash.c
meta.block.c
source.c

but for a documentation comment it is:

comment.line.double-slash.documentation.c
meta.block.c
source.c

Originally from @CodingMarkus in microsoft/vscode#175155

@alexr00
Copy link
Author

alexr00 commented Feb 23, 2023

Ah, sorry, I meant to file this in https://github.com/jeff-hykin/better-objc-syntax.

@jeff-hykin
Copy link
Owner

No problem, closing in favor of jeff-hykin/better-objc-syntax#3

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

2 participants