Prokee Module: bbs
Jump to navigation
Jump to search
The module bbs implements a scanner, which detects blocks of code like comments and string literals.
Examples of Blocks
- line comments
- block comments
- string literals
- block strings
Options
$begin
Sequence of characters, which mark the beginning of the block.$end
Sequence of characters, which mark the end of the block.$end2
Extra optional character for the end of block strings.$esc
One or more characters, which mark an escape-sequence. The next following character is treated with regard to the value of$escmode.$escmode
Escape-modue.
Possible values are:default.$id
The id of the type of the block. (a integral value greater than 0)$nesting
Specifies, if blocks may be nested or not.
Possible values are:true,false.$skip
Specifies, if blocks should be skipped.
Possible values are:true,false.$nl
Specifies how to treat EOL characters at the end of the block.
Possible values are:defaultBlockComment,defaultLineComment,default.$indent
Specifies how indentation of block strings should be handled.
Possible values are:bsmode,false.
Example
The example below defines block comments of the form /*...*/.
DEF BlockComment:BLOCKRULE
{
$id="123";
$begin="/*";
$end="*/";
$esc="\\";
$escmode="default";
$nesting="false";
$skip="true";
$nl="defaultBlockComment";
$indent="false";
}