tree-sitter-cpp icon indicating copy to clipboard operation
tree-sitter-cpp copied to clipboard

No distinction between line/block comments

Open savetheclocktower opened this issue 6 years ago • 0 comments

There appears to be one type of comment node, and it's called comment. Both line comments and block comments are assigned to this node type. As a result, the grammar in atom/language-c can't distinguish between the two types and scopes both as comment rather than comment.line or comment.block.

This means that line comments can't be styled differently from block comments. It also means that a package like DocBlockr can't function properly because it relies on the scope name to tell it how to behave within different types of comments.

I'm not a C++ expert, to put it mildly; so if there's a reason for this that I'm unfamiliar with, please let me know.

savetheclocktower avatar Jun 30 '19 21:06 savetheclocktower