News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

C++ missing Keywords

Started by TheArquitect, March 28, 2020, 11:51:54 AM

Previous topic - Next topic

TheArquitect

Hi,

I'm adding (Settings->Editor->Syntax highlighting->keywords) the c++'s keywords is missing to be identified at text's body. How can I transfer it to the next version of Code::Block?

Best regards,
TheArquitect

oBFusCATed

Can you try to rephrase your question, because I don't understand it?
Please provide more details. Which version is previous and which one is next? OS?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

stahta01

C++ Keywords that are not colored in green or blue inside CB SVN 11979.


and
and_eq
bitand
bitor
char8_t
compl
concept
consteval
constinit
co_await
co_return
co_yield
not
not_eq
or
or_eq
xor
xor_eq


Note: This is just my guess on posters issue.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

gd_on

In my lexer_cpp.xml, I have also added rename.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

MortenMacFly

Quote from: gd_on on March 29, 2020, 11:29:50 AM
In my lexer_cpp.xml, I have also added rename.
I think the best would be to implement whats missing in trunk. Patch?

Settings generally can be transferred using the cb_share_config tool.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Yes, but we still don't know what the actual problem is. Last two replies are just speculation.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

TheArquitect

I notice the C::B doesn't have a lot of keyword in its DB located in Settings->Editor->Syntax highlighting->keywords
I've adding a lot of keywords these are missing there and I want to help the C::D sending a list more complete.

mimi89999

They are in `src/sdk/resources/lexers/lexer_cpp.xml`, but they are commented. I don't know why.