Author Topic: C++ missing Keywords  (Read 1364 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: 12911
    • 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!]

Online stahta01

  • Lives here!
  • ****
  • Posts: 7017
    • 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: [Select]
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 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gd_on

  • Lives here!
  • ****
  • Posts: 581
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 10 64 bits (20.04), svn C::B (last version or almost!), wxWidgets 3.1.4, Msys2 Compilers 10.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (sjlj, posix in C:\msys64\mingw32).

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9606
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: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12911
    • 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.