SA0163: Comentarios anidados
Detecta comentarios anidados
Justificación: Deben evitarse los comentarios anidados porque son difíciles de leer.
Importancia: Baja
Regla de PLCopen: C3
ejemplo 121. Ejemplo
{attribute 'do-analysis'} (* That is (* nested comment 1 *) *) PROGRAM PLC_PRG VAR (* That is // nested comment 2 comment *) iVal1: INT; iVal2: INT; (* That is (* nested comment 3 *) *) pVal3: POINTER TO DWORD; hugo: INT; END_VAR
(* That is // nested comment 4 comment *) iVal1 := iVal1 + 1; (* That is (* nested comment 5 *) *) (* Not that one *)
Salida en el Mensajes vista:
SA0163: Comentario anidado 'comentario anidado 1'
SA0163: Comentario anidado 'comentario anidado 2'
SA0163: Comentario anidado 'comentario anidado 3'
SA0163: Comentario anidado 'comentario anidado 4'
SA0163: Comentario anidado 'comentario anidado 5'