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
Currently, syntax highlighting assumes # is the comment character used in Git Commit messages. The comment character used in Git Commit messages can be configured using core.commentChar in .gitconfig. That functionality is commonly used to change the comment character to something else such that an issue tracker number can be used at the beginning of the commit message such as: #123: Some changes.
If possible, the syntax highlighting would read the configuration to determine the comment character instead of assuming # and highlight comments based on the configured character.
The text was updated successfully, but these errors were encountered:
Many languages have some tokens whose structure is impossible or inconvenient to describe with a regular expression
...and...
..in order to add custom logic for recognizing certain tokens.
So, I'm hoping those statements mean that this could be used to in some way read the commentchar config and then detect the comment token without affecting the rest of the parser too heavily.
Currently, syntax highlighting assumes
#
is the comment character used in Git Commit messages. The comment character used in Git Commit messages can be configured usingcore.commentChar
in.gitconfig
. That functionality is commonly used to change the comment character to something else such that an issue tracker number can be used at the beginning of the commit message such as:#123: Some changes
.If possible, the syntax highlighting would read the configuration to determine the comment character instead of assuming
#
and highlight comments based on the configured character.The text was updated successfully, but these errors were encountered: