Saad
Saad
Should I add the contains property or end the preprocessor after "\s" ? This ending doesn't seems to me a proper way so adding the contains might be a good...
Is this issue resolved?
Please go through my pull request. I think it resolves the issue.
In Python also, string highlighting goes wrong [Line break in Python](https://highlightjs.org/demo#lang=python&v=1&theme=atom-one-dark&code=c3RyaW5nID0gImhlbGxvIAkjIGhpZ2hsaWdodMQZc2hvdWxkIGJyZWFrIGhlcmUKYSA9IDUKYiA9IDYKcHJpbnQoYStiKQpXb3JsZCEhIgoKIyBXcm9uZyBjb2RlCtBgySgJIyBTeW50YXhFcnJvcgojIFJlc3Qgb2bFNyB3b3JrcyBmaW7ZcNFaXMxbdGhlIGNvcnJlY3Qgb9pFU28gdG8gaW5zZXJ0IGxpbmXnAOlpbiBzaW5nbGUgcXVvdGVkIMdtaW4gcHl0aG9uLCB3ZSBuZWVkIFwgKGJhY2tzbGFzaCnkAP3GISBwcm92aWRlcyB0cmlwyknHSnMgZm9yIG11bHRpxXfHYAonJycKxRExxgcyICdmb28gYmFyxxgzxCMJI%2BcA3A%3D%3D) Same goes for cpp [Cpp](https://highlightjs.org/demo#lang=cpp&v=1&theme=atom-one-dark-reasonable-min&code=CiNpbmNsdWRlIDxpb3N0cmVhbT4KCmludCBtYWluKCkKewogICAgc3RkOjpjb3V0PDwiSGVsbG8gLy8gRXJyb3IgTWlzc2luZyBlbmTEB3F1b3RlxTRXb3JsZCI7CQndKyAKxS1yZXR1cm4gMDsKfQ%3D%3D) This mode may help to overcome this issue https://highlightjs.readthedocs.io/en/latest/mode-reference.html#endswithparent Any suggestions ... ? Is...
I think I got a list of all such keywords: ``` alignas alignof asm catch const_cast - used as - const_cast(p); decltype - working fine dynamic_cast - dynamic_cast (animal); noexcept...
``` const FUNCTION_DISPATCH = { className: 'function.dispatch', relevance: 0, keywords: { // Only for relevance, not highlighting. _hint: FUNCTION_HINTS }, begin: regex.concat( /\b/, /(?!decltype)/, /(?!if)/, /(?!for)/, /(?!switch)/, /(?!while)/, hljs.IDENT_RE, regex.lookahead(/(|)\s*\(/))...
Thanks @cjdb for correcting my list. After checking the `auto` keyword in your list, I suddenly remembered that all the c++ datatypes like `int char double float bool` etc also...
Same for the below keywords too: `and_eq, case, delete, or_eq, return, throw` Working fine for `return, throw` due to this ``` const EXPRESSION_CONTEXT = { // This mode covers expression...
``` switch (x){ case (5): cout
 Seems like its working fine Here is the list of keywords that are added: ``` /(?!decltype)/, /(?!if)/, /(?!for)/, /(?!switch)/, /(?!while)/, /(?!alignas)/, /(?!alignof)/, /(?!asm)/, /(?!catch)/, /(?!const_cast)/, /(?!dynamic_cast)/, /(?!noexcept)/, /(?!reinterpret_cast)/, /(?!sizeof)/,...