Author Topic: C++ missing Keywords  (Read 15432 times)

Offline TheArquitect

  • Single posting newcomer
  • *
  • Posts: 2
C++ missing Keywords
« on: March 28, 2020, 11:51:54 am »
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C++ missing Keywords
« Reply #1 on: March 28, 2020, 12:09:44 pm »
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!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7576
    • My Best Post
Re: C++ missing Keywords
« Reply #2 on: March 28, 2020, 09:41:16 pm »
C++ Keywords that are not colored in green or blue inside CB SVN 11979.

Code
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
Re: C++ missing Keywords
« Reply #3 on: March 29, 2020, 11:29:50 am »
In my lexer_cpp.xml, I have also added rename.
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C++ missing Keywords
« Reply #4 on: March 29, 2020, 04:49:55 pm »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C++ missing Keywords
« Reply #5 on: March 29, 2020, 05:19:41 pm »
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!]

Offline TheArquitect

  • Single posting newcomer
  • *
  • Posts: 2
Re: C++ missing Keywords
« Reply #6 on: April 03, 2020, 12:06:04 pm »
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.

Offline mimi89999

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: C++ missing Keywords
« Reply #7 on: April 03, 2020, 12:33:21 pm »
They are in `src/sdk/resources/lexers/lexer_cpp.xml`, but they are commented. I don't know why.