Author Topic: Whitspaced keywords and C++/CLI  (Read 4637 times)

bengle

  • Senior Community Member
  • Posts: 168
  • Hero Points: 4
Whitspaced keywords and C++/CLI
« on: August 16, 2007, 02:08:52 PM »
SlickEdit does not cuurently include color-coding support for any of the new C++ keywords that were added in Visual Studio 2005 to support .NET (C++/CLI).  Additionally, some of the new keywords are whitespaced (contain embedded blanks).

I tried to add the new keywords manually via the “Color Coding Setup” dialog box, but there is no way to specify keywords with embedded spaces.

The following are the new whitespaced keywords:

enum class
enum struct
for each
interface class
interface struct
ref class
ref struct
value class
value struct

The words “value” or “ref”, for example are not keywords when used alone.  It is perfectly valid to have a variable named “value”, “ref”, or “each” because these are not keywords by themselves.

The other new C++ keywords (without whitespace) are as follows:

gcnew
generic
nullptr
abstract
delegate
event
finally
in
initonly
internal
literal
override
property
sealed
where

Could you possibly add support for whitespaced keywords in a future version of SlickEdit, as well as add all of the new C++ keywords to your built-in color coding support?   

Thanks,
Bruce Engle           


Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Whitspaced keywords and C++/CLI
« Reply #1 on: August 16, 2007, 03:11:29 PM »
You can have multi-word keywords, they just have to be put in quotes.

1.  Go to Tools > Options > Color Coding...
2. Select the "Tokens" tab
3.  Click on New...
4.  Type "enum class", hit OK
5.  Repeat

And if you see someone who works for Microsoft C++/CLI, kick him in the knee.

But don't tell him why.   ;)

bengle

  • Senior Community Member
  • Posts: 168
  • Hero Points: 4
Re: Whitspaced keywords and C++/CLI
« Reply #2 on: August 16, 2007, 04:58:21 PM »
Quotes did the trick for me.  Thank you!   

mnelso

  • Community Member
  • Posts: 8
  • Hero Points: 0
Re: Whitspaced keywords and C++/CLI
« Reply #3 on: August 16, 2007, 09:03:18 PM »
Will adding these new keywords to the color coding dialog fix the problems SlickEdit has parsing CLI code?  Or will it simply cause color coding to work properly?