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

CMake Multiline Comments #6496

Closed
RamtinKosari opened this issue Jul 30, 2023 · 3 comments
Closed

CMake Multiline Comments #6496

RamtinKosari opened this issue Jul 30, 2023 · 3 comments
Labels

Comments

@RamtinKosari
Copy link

RamtinKosari commented Jul 30, 2023

Describe the bug

Linguist Doesnt Support Multiline Commenting that is Avalible from CMake Version 3,

Expected behaviour

cmake multiline format is like :

  #[[
  cmake_minimum_required(VERSION 3.20.2)
  
  project(myproject)
  ]]

using #[[ for init and ]] for close

Related discussion

Received It from Discussions, link :
https://github.com/orgs/community/discussions/60701

Additional notes

thank you

@lildude
Copy link
Member

lildude commented Jul 31, 2023

Linguist Doesnt Support Multiline Commenting that is Avalible from CMake Version 3,

Correct because Linguist doesn't support any syntax highlighting… it only collects the grammar for use by GitHub's highlighting engines. 😉

As detailed in the troubleshooting doc, all syntax highlighting issues should be raised with the respective grammar maintainers:

There's a problem with the syntax highlighting of a file

Linguist detects the language of a file but the actual syntax-highlighting is powered by a set of language grammars which are included in this project as a set of submodules as listed here.

If you experience an issue with the syntax-highlighting on GitHub, please report the issue to the upstream grammar repository, not here.
Grammars are updated every time we build the Linguist gem so upstream bug fixes are automatically incorporated as they are fixed.

Please open an issue with the upstream grammar.

Closing as this is not a bug in Linguist.

@lildude lildude closed this as completed Jul 31, 2023
@jamesETsmith
Copy link

It appears this issue has already been reported (5 years ago) textmate/cmake.tmbundle#6

@nilason
Copy link

nilason commented May 13, 2024

As I noted in #6659 (comment) there is a fix available to this upstream, but due lack of activity it may be better (for the time being) to link to my fork.

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

No branches or pull requests

4 participants