runtime(java): Fold adjacent "import" declarations
Also, distinguish (by abbreviating their names) and manage
foldable kinds of syntax items: blocks of code ("b"), plain
comments ("c"), Javadoc comments ("d"), adjacent "import"
declarations ("i"). Fold all qualifying items by default;
otherwise, do not fold items of explicitly delisted kinds.
For example,
------------------------------------------------------------
let g:java_ignore_folding = "bcdi"
------------------------------------------------------------
Resolves zzzyxwvut/java-vim#12.
closes: #18492
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
97d1255558
commit
143686b3c4
@ -1,20 +1,20 @@
|
||||
| +0&#ffffff0@7|n+0#af5f00255&|e|w| +0#0000000&|O|b|j|e|c|t|(|)| |{+0#0000001#ffff4012| +0#0000000#ffffff0@52
|
||||
@12|{+0#0000001#ffff4012| +0#0000000#ffffff0@61
|
||||
@16|{+0#0000001#ffff4012| +0#0000000#ffffff0@57
|
||||
@20|n+0#af5f00255&|e|w| +0#0000000&|O|b|j|e|c|t|(|)| |{+0#0000001#ffff4012@2| +0#0000000#ffffff0@38
|
||||
@24|n+0#af5f00255&|e|w| +0#0000000&|O|b|j|e|c|t|(|)| |{+0#0000001#ffff4012@2|}@2|;+0#0000000#ffffff0| @30
|
||||
@20>}+0#0000001#ffff4012@2|;+0#0000000#ffffff0| @50
|
||||
@16|}+0#0000001#ffff4012| +0#0000000#ffffff0@57
|
||||
@12|}+0#0000001#ffff4012| +0#0000000#ffffff0@61
|
||||
@8|}+0#0000001#ffff4012|;+0#0000000#ffffff0| @64
|
||||
@75
|
||||
@8|s+0#af5f00255&|w|i|t|c|h| +0#0000000&|(|0+0#e000002&|)+0#0000000&| |{+0#0000001#ffff4012| +0#0000000#ffffff0@54
|
||||
@12|c+0#af5f00255&|a|s|e| +0#0000000&|0+0#e000002&|:+0#0000000&| @55
|
||||
@12|c+0#af5f00255&|a|s|e| +0#0000000&|1+0#e000002&|:+0#0000000&| |{+0#0000001#ffff4012| +0#0000000#ffffff0@53
|
||||
@16|b+0#af5f00255&|r|e|a|k|;+0#0000000&| @52
|
||||
@12|}+0#0000001#ffff4012| +0#0000000#ffffff0@61
|
||||
@12|d+0#af5f00255&|e|f|a|u|l|t|:+0#0000000&| |;| @52
|
||||
@8|}+0#0000001#ffff4012| +0#0000000#ffffff0@65
|
||||
@4|}+0#0000001#ffff4012| +0#0000000#ffffff0@69
|
||||
@75
|
||||
@57|3|7|,|6|-|2|1| @6|3|0|%|
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@4|*|/| +0#0000000&@65
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@3|/|*@1| +0#0000000&@65
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@4|*| +0#0000000&@66
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@4|*|/| +0#0000000&@65
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@3|/@2| +0#0000000&@65
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@3>/@2| +0#0000000&@65
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@3|/@2| +0#0000000&@65
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@3|/@1| +0#0000000&@66
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@3|/@1| +0#0000000&@66
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@3|/@1| +0#0000000&@66
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@3|{| +0#0000000&@67
|
||||
| +0#0000e05#a8a8a8255@1| +0#e000002#ffffff0@3|}| +0#0000000&@67
|
||||
| +0#0000e05#a8a8a8255@1|"+0#0000000#ffffff0@2| @69
|
||||
| +0#0000e05#a8a8a8255@1|}+0#0000001#ffff4012|)+0#e000e06#ffffff0| +0#0000000&@70
|
||||
| +0#0000e05#a8a8a8255@1|c+0#00e0003#ffffff0|l|a|s@1| +0#0000000&|U|n|f|o|l|d|i|n|g|T|e|s|t|s| |{+0#00e0003&| +0#0000000&@50
|
||||
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@3|i+0#00e0003&|n|t|e|r|f|a|c|e| +0#0000000&|U|n|f|o|l|d|a|b|l|e| @48
|
||||
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@3|{+0#0000001#ffff4012| +0#0000000#ffffff0@67
|
||||
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@3|}+0#0000001#ffff4012| +0#0000000#ffffff0@67
|
||||
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@72
|
||||
@57|3|7|,|2|-|5| @7|2|4|%|
|
||||
|
||||
Reference in New Issue
Block a user