Comments
As in some other programing language also moscrif supports two types of comments: in-line comment or comment block.
In-line comment
In-line comment starts with // where comments is text after marker up to end of the line.
Example code 1: line comment
// this is a line comment
Comment block
Comment blog starts with /* and ends with */. Comment is text within this markers and it support multi-line text.
Example code 2: commented block
/*
this
is a
commented
block.
*/
Regions
Region is a strong tool to clarify code. Region is pair tag, which encloses a block of code that you can expand or collapse when using the outlining feature of Moscrif IDE. Reqion starts with start tag:
// [name of the region]
and ends with end tag:
// , it marks end of the region
Both tags must be placed inside line comments
Example code 3: regions
// the first region
Source code goes here
//
// the second regionn
Source code goes here
//
Image 1: regions in Moscrif SDK

Tasks
Tasks are single reserved words written in in-line comment as well as on block comment, which simplifiest comunication between developers.
Moscrif IDE supports following tasks:
- TODO:
- FIX:
- FIXME:
- HACK:
- HACKME:
- WARN:
- WARNING:
Example code 4: tasks
//TODO: If animate is set to true menu is moving up or down
/*
HACK: Draw background filled by gradient
*/
Image 2: tasks in Moscrif IDE
