You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to request the ability to syntax highlight CMake bracket comments as "comment". That is, currently if I do this:
# This is a comment
This is not a comment
linguist sees the #-comment as a comment.
#[[ This is a bracket comment in CMake.
It lasts until the end of the bracket ]]
This is not a comment
is not seen as a comment. It would be nice if linguist (and thus GitHub) could display that as a "block comment" much like how it does with C-code:
/* This is a nice multiple * line comment */Thisisn't
NOTE: I know that the docs say that bracket comments are only supported since CMake 3.0 but that was 5+ years ago. I guess one could try to be smart and detect if cmake_minimum_required is set to something higher than 3.0, but I think it's a fair assumption to think 3.x is now standard enough.
The text was updated successfully, but these errors were encountered:
This has nothing to do with Linguist. This is entirely driven by the grammar as this is a syntax highlighting behaviour. As pointed out in the Troubleshooting docs linked in the template you deleted, you will need to raise this with the maintainers of the grammar Linguist uses.
If the grammar is no longer maintained, please feel free to open a PR linking to a maintained grammar that behaves as you wish.
As this is not something Linguist has any control over, I'm closing this issue.
I would like to request the ability to syntax highlight CMake bracket comments as "comment". That is, currently if I do this:
# This is a comment This is not a comment
linguist sees the #-comment as a comment.
#[[ This is a bracket comment in CMake. It lasts until the end of the bracket ]] This is not a comment
is not seen as a comment. It would be nice if linguist (and thus GitHub) could display that as a "block comment" much like how it does with C-code:
NOTE: I know that the docs say that bracket comments are only supported since CMake 3.0 but that was 5+ years ago. I guess one could try to be smart and detect if
cmake_minimum_required
is set to something higher than 3.0, but I think it's a fair assumption to think 3.x is now standard enough.The text was updated successfully, but these errors were encountered: