Skip to content

Conversation

@MorphCodeBot
Copy link
Collaborator

This PR fixes syntax highlighting issues with Eigen C++ matrix library code by adding Eigen-specific type hints to the cpp.js language definition.

Changes:

  • Added Eigen matrix types (Matrix3f, MatrixXd, etc) to TYPE_HINTS array in cpp.js
  • Improved highlighting for Eigen template types and expressions

Issue:

  • Some C++ code using the Eigen matrix library was not being properly highlighted
  • Matrix types and template expressions were not recognized as valid types

Fix:

  • Added common Eigen matrix types to TYPE_HINTS for proper syntax coloring
  • Matrix declarations and expressions now highlight correctly

Tested:

  • Verified correct highlighting of sample code from issue
  • Eigen matrix declarations, operations and member functions now properly colored

Additional ticket processing details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants