C/C++ Incorrect highlighting for LL suffix
See original GitHub issueDescribe the issue
Only the first L
is highlighted when the LL
integer literal suffix is used
Which language seems to have the issue? C and C++
Are you using highlight
or highlightAuto
?
I don’t know. I’ve just seen the issue on StackOverflow
…
Sample Code to Reproduce
No code, but some questions where the issue occurs
- https://stackoverflow.com/questions/15575054/what-does-ll-mean
- https://stackoverflow.com/questions/33377358/integer-overflow-in-boolean-expressions/33377537#33377537
- https://stackoverflow.com/questions/65318714/expression-evaluation-in-32-bit-cpu
Screenshot:
Expected behavior Both Ls should be highlighted
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Cant Highlight Text - Adobe Support Community - 10104672
No visible highlight, but I can select as normal and it will act like it's highlighted when I change font, color, etc.
Read more >macros - How to make \hl (highlighting) to automatically place ...
When a command is registered this way, soul will first expand it (including the argument), and then feed the result as a whole...
Read more >C++ code file extension? What is the difference between .cc ...
GNU GCC recognises all of the following as C++ files, and will use C++ ... other suffixes to indicate special handling, for example...
Read more >syntax - Vim documentation
This will cause the wrong default highlighting to be used. ... +- Install autocmds based on suffix to set the 'filetype' option |...
Read more >List of the armcc error and warning messages - Arm Developer
To eliminate the warning, if the constant should be treated as a (64-bit) long long type rather than a signed long , explicitly...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry I haven’t looked at the source code of highlight.js yet, and currently I don’t have enough time to look through it. May be at the weekend
Current rule, line 73
c-like
: