Problem Description
For UA languages (for e.g. OSTAR etc),the option "search in comments" is not activated in the reference finder, still links are made for comments.
Applicable in CAST Version
Release | Yes/No |
---|---|
8.3.x | |
8.2.x | |
8.1.x | |
8.0.x | |
7.3.x | |
7.2.x | |
7.0.x |
Action Plan
The reason of this is that when Reference finder reads the code of the files, it trims each line.
Therefore the regular expression is false for RF, and the comment is considered as code.
Below description of comments is the root cause of the problem:
<comment>
<begin><![CDATA[[ ][ ][ ][ ][ ][ ][ ][ ][ ]DESCRIPTION[ ][ ][ ][ ][ ][ ][ ][ ][ ]]]></begin>
<end><![CDATA[<]]></end>
<nested>false</nested>
<multiline>true</multiline>
</comment>
Replace above definition of comments with below :
<comment> <begin><![CDATA[DESCRIPTION]]></begin> <end><![CDATA[<]]></end> <nested>false</nested> <multiline>true</multiline> </comment> or <comment> <begin><![CDATA[DESCRIPTION[ \t\r\n]*-----------]]></begin> <end><![CDATA[<]]></end> <nested>false</nested> <multiline>true</multiline> </comment>
There are no more false links
Notes/Comments
Related Pages