You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
?tacl routine
#frame
[#DEF routine_name ROUTINE |BODY|
#FRAME
#OUTPUT [#ROUTINENAME] - testing
#UNFRAME
] == end of routine_name
[#DEF help_text TEXT |BODY|
A line that starts in column 1,
and another line that starts at column 1.
A line that start at column 3.
Another line that starts at column 3.
A line that starts at column 5
A final line that starts at column 1.
] == end of help_text
#outputv help_text
routine_name
#unframe
The block collapse arrow should appear on the line containing [#DEF help_text TEXT |BODY| and should collapse all lines until it reaches ] == end of text which is how it works for the block that begins with [#DEF routine_name ROUTINE |BODY| and ends with ] == end of routine_name.
Instead, in a text definition, the block collapse arrows only appear on the indentation changes as show here
I don't mind additional block collapse arrows (is that the right term?) but I do think the brackets should always be a block.
Thank you.
The text was updated successfully, but these errors were encountered:
This extension does not provide folding strategy for TACL sources. This means that VSCode will fallback to indentation based folding strategy. And this is what you see happening.
A folding region starts when a line has a smaller indent than one or more following lines, and ends when there is a line with the same or smaller indent.
The answer is to implement folding strategy for TACL that works the way we expect these things to work. That' something I have not found motivation to do in the past.
A folding region starts when a line has a smaller indent than one or more following lines, and ends when there is a line with the same or smaller indent.
[#DEF routine_name ROUTINE |BODY| <=== folding region starts because following lines have greater indent
#FRAME
#OUTPUT [#ROUTINENAME] - testing
#UNFRAME
] == end of routine_name <=== folding region ends because this line is at the same indent as the folding region start
Test:
The block collapse arrow should appear on the line containing
[#DEF help_text TEXT |BODY|
and should collapse all lines until it reaches] == end of text
which is how it works for the block that begins with[#DEF routine_name ROUTINE |BODY|
and ends with] == end of routine_name
.Instead, in a text definition, the block collapse arrows only appear on the indentation changes as show here
I don't mind additional block collapse arrows (is that the right term?) but I do think the brackets should always be a block.
Thank you.
The text was updated successfully, but these errors were encountered: