BjAlvestad / vscode-simatic-scl

VS Code extensions for the SCL language used in TIA Portal
4 stars 0 forks source link

Add support for DBs declared from UDT #9

Closed BjAlvestad closed 1 month ago

BjAlvestad commented 1 month ago

DBs can be declared from UDTs, and will then have the syntax of just the UDT name between the "NON_RETAIN" and "BEGIN"

E.g.


DATA_BLOCK "MyDB"
NON_RETAIN

"MyUDT"

BEGIN

END_DATA_BLOCK

Currently this fails parsing. Note that this issue just covers the parsing.

Setting up Scope / Linking is not covered by this issue (global scope is not covered yet anyways).