Posted 15 years ago by Matthew Smith - Australia
Avatar
Hi,

I've recently purchased the SyntaxEditor control and are looking for some assistance with creating a language definition file for a specific language I'm building an IDE for.

I'm having trouble getting the following items working together correctly:

Single Line Rem Statements:
Rem or '

Multiline Rem Statements:
Rem
EndRem
(would also like to use outlining folding if possible)

Regions:
'#Region
'#End Region
(If a remove the apostrophe rem then the region becomes active and foldable)

The problem probably lies in mixing the Rem and Apostrophes???

Also, is there a repositry for language definitions?


Any help would be greatly appreciated.

Regards,

Matt

[Modified at 04/07/2005 07:53 AM]

Comments (5)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Matt,

You should probably use the VB.NET sample language definition as a template. It has single-line comments and regions defined like that.

In regards to Rem, you can't have Rem work for both single and multiple lines. It would have to be one or the other. If you want to do the multiple line mode, then take a look at the /* */ multi-line comments in C# and do something similar to that implementation.


Actipro Software Support

Posted 15 years ago by Matthew Smith - Australia
Avatar
Yep, thats the two files I've been playing with (along with the code for the semantic parsers).

In relation to using ' and '#Region, is there anyway to get around this one - the '#Region becomes a comment


Regards,

Matt
Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Oh, I didn't notice the ' before the region. I assume you have child states with the '#Region being a start scope for one state and the ' being a start scope for another? If so, make sure that the '#Region state is referenced first in your ChildStates list for your DefaultState.


Actipro Software Support

Posted 15 years ago by Matthew Smith - Australia
Avatar
Ah! Thats great thanks! I'll have a bit more of a play with the multi-line one.

Thanks for your quick responses!


Regards,

Matt
Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
No problem... you definitely can get that working with a little tweaking of order.


Actipro Software Support

The latest build of this product (v2018.1 build 0342) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.