Reply To: Language setup: End of line comments – Block comments

Product Compare Forums Multi-Edit Support Language setup: End of line comments – Block comments Reply To: Language setup: End of line comments – Block comments

#5106
deleyd
Participant

[code:1thb2ctm]
#include Language.sh

macro test()
{
int Iint;
str TStr;

//Struct TCommentChars defined in Language.sh
struct TCommentChars RCC;

GetCommentChars( RCC ); // Get comment characters

TStr = RCC.szOpenComment1;
TStr = RCC.szCloseComment1;
TStr = RCC.szOpenComment2;
TStr = RCC.szCloseComment2;
TStr = RCC.szEolComment1;
TStr = RCC.szEolComment2;
TStr = RCC.szEolComment3;
TStr = RCC.szEolComment4;

Iint = RCC.nEolColumn1;
Iint = RCC.nEolColumn2;
Iint = RCC.nEolColumn3;
Iint = RCC.nEolColumn4;
}
[/code:1thb2ctm]

Have a look at macro GetCommentChars in file Language.s, and the structure TCommentChars defined in file Language.sh