Skip to content
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

operator""() wrecks font-lock #27

Open
oschonrock opened this issue Dec 9, 2019 · 2 comments
Open

operator""() wrecks font-lock #27

oschonrock opened this issue Dec 9, 2019 · 2 comments

Comments

@oschonrock
Copy link

     constexpr auto operator""m(unsigned long long l) { return quantity<metre, std::int64_t>(l); }                                                                                                                                                                                                                                                                  

which is trying to define a UDL in this library

https://github.com/mpusz/units

@ludwigpacifici
Copy link
Owner

Hello,

I am not able to reproduce your issue:

operator

I suggest you to reproduce your issue with a minimal configuration. If the issue is still there, can you report it to cc-mode which is the official Emacs C++ support. If the bug is fixed upstream, all Emacs users will get a fix. This package was a temporary fix at the time of C++11 was released.

@stanford-scs
Copy link

I ran into the same problem and can reproduce the issue with a minimal config. To reproduce, do the following steps.

  1. Copy this file to hexstring.cc.
  2. Start emacs 28.1 in a completely empty home directory with no dot files.
  3. Use M-: to run (require 'package)
  4. Use M-: to run (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
  5. Run M-x package-install RET modern-cpp-font-lock RET
  6. Run M-x modern-c++-font-lock-global-mode
  7. Visit hexstring.cc

The result will look like this:
emacs

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

No branches or pull requests

3 participants