Roald87 / TcBlack

Opnionated code formatter for TwinCAT.
MIT License
103 stars 11 forks source link

Recognize pragma fields #3

Open Roald87 opened 4 years ago

Roald87 commented 4 years ago

E.g. nVar : INT; {info 'TODO: should get another name'}

SankariNL commented 3 years ago

I think this can be done first by recognizing a pragma (https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_plc_intro/2526889867.html&id=4368271537662055795)

Then this can be split into the following categories:

Roald87 commented 3 years ago

Hi @SankariNL. Thanks for your input! I actually meant pragmas. Didn't realize attributes were a subclass of the pragmas :p.

I'm not sure if it would also be useful to recognize the exact pragma category. For the initial implementation it would certainly be enough to recognize a pragma.