| 45 | } |
| 46 | |
| 47 | function addKeywords(keywords: string[]) { |
| 48 | // (Ruben) Done one by one as if you just push them all, Monaco complains that they're not strings, but as |
| 49 | // far as I can tell, they indeed are all strings. This somehow fixes it. If you know how to fix it, plz go |
| 50 | for (let i = 0; i < keywords.length; ++i) { |
| 51 | cppp.keywords.push(keywords[i]); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | // We remove everything that's not an identifier, underscore reserved name and not an official C++ keyword... |
| 56 | // Regarding #617, final is a identifier with special meaning, not a fully qualified keyword |