Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.84k stars 194 forks source link

Add pairs for doxygen formulas in C / C++ #1139

Closed ax487 closed 1 year ago

ax487 commented 2 years ago

There is a little-known feature inside doxygen, which allows users to add inline formulas to the documentation:

  // The distance between \f$(x_1,y_1)\f$ and \f$(x_2,y_2)\f$ is 
  // \f$\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\f$.

This patch adds the corresponding pairs to the sp-c-modes.

Fuco1 commented 1 year ago

Thanks! I didn't know about this either :)