SQL folding question
Posted: 02 May 2019 09:04
Hi,
I'm trying to add some logic to SQL syntax for oracle SQL.
I wish to fold the if else statement.
if
xx;
elsif
xx;
elsif
xx;
else
xx;
end if;
I try to write the fold syntax like:
1_Id=if
1_Begin=if
1_End=end if;
1_EndBefore=elsif
2_Id=elsif
2_Begin=elsif
2_End=elsif
2_EndBefore=elsif
it only can fold those if to elsif and elsif to elsif:
I try to refer the php one.
1_EndBefore=} elseif|} else
but seem like is not working.
by the way, i notice php syntax cant fold else statement, if the else statement the same line with the close bracket.
I'm trying to add some logic to SQL syntax for oracle SQL.
I wish to fold the if else statement.
if
xx;
elsif
xx;
elsif
xx;
else
xx;
end if;
I try to write the fold syntax like:
1_Id=if
1_Begin=if
1_End=end if;
1_EndBefore=elsif
2_Id=elsif
2_Begin=elsif
2_End=elsif
2_EndBefore=elsif
it only can fold those if to elsif and elsif to elsif:
I try to refer the php one.
1_EndBefore=} elseif|} else
but seem like is not working.
by the way, i notice php syntax cant fold else statement, if the else statement the same line with the close bracket.