标签:title ups als amp imp create demo ESS cal
三、代码折叠
Folding in code is quite different in UDL 2.1. Instead of two keyword sets (open and close), now we have three keyword sets (open, middle and close). Also, there are two Folding in code groups: one for forward (style1) and one for backward (style2) search.
This is a typical C++ folding definition.
Curly braces represent folding points in the code and preprocessor is also supported (for this demo not all statements were defined)
There are two important things here.
As you can see both Folding 1 and Folding 2 create folding points, but they work differently.
Note: forward and backward search concept is explained in more detail in Introduction page.
You should read that part if you haven’t already.
UDL 2.1 will automatically create middle folding point if open folding point is followed by a close folding point on the same line.
Use of multi-part keywords is supported in Folder in code 2, as you can see in this example.
标签:title ups als amp imp create demo ESS cal
原文地址:https://www.cnblogs.com/xin04/p/12397433.html