-
Notifications
You must be signed in to change notification settings - Fork 36
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
single-line comments break highlighting on the next line #79
Comments
It took me literally half an hour of digging through source code, github support, and google, to find this. As of some recent update, Github syntax highlighting for C++ is terribly broken by this error, especially if you have multi-line comments following a single-line comment as our codebase does: namespace celeritas
{
//---------------------------------------------------------------------------//
/*!
* Calculate the transport cross section for the Wentzel OK and VI model.
*
* \note This performs the same calculation as Geant4's
* G4WentzelOKandVIxSection::ComputeTransportCrossSectionPerAtom.
*/
class WentzelTransportXsCalculator
{
public:
//!@{
//! \name Type aliases
using XsUnits = units::Native; // [len^2]
using Charge = units::ElementaryCharge;
using Mass = units::MevMass;
using MomentumSq = units::MevMomentumSq;
//!@}
/* and so forth */
}; The first single-line comment causes the |
I don't think this is a bug in this repository because the issue only recently started manifesting on GitHub, and the last commit for this repository was years ago. |
On GitHub.com, C++ code is incorrectly highlighted after a line that contains a
//
comment.Example code demonstrating the problem:
Reporting here because of instructions in this repo.
The text was updated successfully, but these errors were encountered: