git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Syntax related question

From
SSyler <hileo77@gmail.com>
Date
Dec 12, 2019, 14:02 UTC
Message-ID
<CAC4O4kJzdShY8wW67hR4_AxEjS09bRYLHTCj98Z1VRYbLpE=EQ@mail.gmail.com>

i have a question about this code `*.s#?`, is the code after # supposed to be interpreted as a comment? my understanding is that its not a comment, also does the # need to be the first character to be interpreted as a comment?

the reason why I'm asking, I'm making simple extension for vs code, syntax highlighting, auto completion that kind of stuff and i want to add the ability to chose one of the templates of the github/gitignore repo their syntax highlighting interprets the code above as containing a comment after the # but the way i understood the rules is that it is not interpreted as a comment, so i just want to be sure that I'm implementing it correctly.

Message 1 of 1 in “Syntax related question”
  1. SylerDec 12, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.