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(tick)
8.2.x(tick)
8.1.x (tick)
8.0.x(tick) 
7.3.x (tick)
7.2.x(tick)
7.0.x(tick)
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>

  1. 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>
  2. There are no more false links

Notes/Comments

 

Related Pages