pcdshub / pytmc

Generate EPICS IOCs and records from TwinCAT projects - along with many TwinCAT project tools
https://pcdshub.github.io/pytmc/
Other
10 stars 11 forks source link

How should we handle commented out pragmas? #145

Open n-wbrown opened 4 years ago

n-wbrown commented 4 years ago

Commented out pragmas trigger the linter.

e.g.

//    {attribute 'pytmc' := '
//        pv: TypeCode
//        io: i
//     '}
    TypeCode    :   UINT; // Set at instantiation to fault class code
klauer commented 4 years ago

Good find! I guess we can exclude all lines that start with //.

For multi-line commas, i.e., (* ... *), we may just have to live with them being interpreted as we don't really want to fully parse the code.