mirror of
https://github.com/vim/vim.git
synced 2025-10-23 08:44:20 -04:00
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#0000e05#a8a8a8255@1| +0#0000000#ffffff0@3|{+0#0000001#ffff4012| +0#0000000#ffffff0|O|b|j|e|c|t| |b@1| |=| |(@1|O|b|j|e|c|t|)| |n+0#af5f00255&|e|w| +0#0000000&|b+0#00e0003&|y|t|e|[+0#0000000&|]|{+0#0000001#ffff4012|}|)+0#0000000#ffffff0|;| |}+0#0000001#ffff4012| +0#0000000#ffffff0@28
|
||||
|++0#0000e05#a8a8a8255| |+|-@1| @1|8| |l|i|n|e|s|:| |{|-@57
|
||||
| @1|/+0&#ffffff0|*|\@2|*|/| +0#0000000&|{+0#00e0003&| +0#0000000&@63
|
||||
|++0#0000e05#a8a8a8255| |+|-@1| @1|5| |l|i|n|e|s|:| |(|n|e|w| |j|a|v|a|.|u|t|i|l|.|f|u|n|c|t|i|o|n|.|F|u|n|c|t|i|o|n|<|O|b|j|e|c|t|,| |O|b|j|e|c|t|>|(|)| |{|-@6
|
||||
|+| |+|-@1| @1|5| |l|i|n|e|s|:| |(|n|e|w| |j|a|v|a|.|u|t|i|l|.|f|u|n|c|t|i|o|n|.|F|u|n|c|t|i|o|n|<|O|b|j|e|c|t|,| |O|b|j|e|c|t|>|(|)| |{|-@6
|
||||
| @1| +0#0000000#ffffff0@3>}+0#00e0003&| +0#0000000&@67
|
||||
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@72
|
||||
|++0#0000e05#a8a8a8255| |+|-@1| @1|3| |l|i|n|e|s|:| @2|*| |N|o| |o|p|e|r|a|t|i|o|n|.|-@41
|
||||
| @1| +0#0000000#ffffff0@3|v+0#00e0003&|o|i|d| +0#0000000&|n|o|O|p|1|(|)| |{+0#0000001#ffff4012| +0#0000000#ffffff0|}+0#0000001#ffff4012| +0#0000000#ffffff0@52
|
||||
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@3|/+0#0000e05&|*@1| +0#e000e06&|N|o| |o|p|e|r|a|t|i|o|n|.| +0#0000e05&|*|/| +0#0000000&@48
|
||||
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@3|v+0#00e0003&|o|i|d| +0#0000000&|n|o|O|p|2|(|)| @56
|
||||
|++0#0000e05#a8a8a8255| |+|-@1| @1|2| |l|i|n|e|s|:| |{|-@57
|
||||
| @1| +0#0000000#ffffff0@3|/+0#0000e05&|*@1| +0#e000e06&|N|o| |o|p|e|r|a|t|i|o|n|.| +0#0000e05&|*|/| +0#0000000&@48
|
||||
|++0#0000e05#a8a8a8255| |+|-@1| @1|2| |l|i|n|e|s|:| |v|o|i|d| |n|o|O|p|3|(|)| |{|-@44
|
||||
| @1| +0#0000000#ffffff0@3|/+0#0000e05&|*@1| +0#e000e06&|N|o| |o|p|e|r|a|t|i|o|n|.| +0#0000e05&|*|/| +0#0000000&@48
|
||||
|++0#0000e05#a8a8a8255| |+|-@1| @1|2| |l|i|n|e|s|:| |v|o|i|d| |n|o|O|p|4|(|)| |{|-@44
|
||||
| @1| +0#0000000#ffffff0@72
|
||||
|++0#0000e05#a8a8a8255| |+|-@1| @1|3| |l|i|n|e|s|:| |/| |N|o| |o|p|e|r|a|t|i|o|n|.|-@43
|
||||
| @1| +0#0000000#ffffff0@3|v+0#00e0003&|o|i|d| +0#0000000&|n|o|O|p|5|(|)| |{+0#0000001#ffff4012| +0#0000000#ffffff0|}+0#0000001#ffff4012| +0#0000000#ffffff0@52
|
||||
@57|7|1|,|2|-|5| @7|6|1|%|
|
||||
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@72
|
||||
|-+0#0000e05#a8a8a8255| |/+0&#ffffff0|*@2|/| +0#0000000&@1|i+0#e000e06&|m|p|o|r|t| +0#0000000&|j|a|v|a|.|l|a|n|g|.|C+0#00e0003&|o|m|p|a|r|a|b|l|e|;+0#0000000&| |/+0#0000e05&|*| +0#0000000&@34
|
||||
|2+0#0000e05#a8a8a8255| |i+0&#ffffff0|m|p|o|r|t| |j|a|v|a|.|l|a|n|g|.|O|b|j|e|c|t|;| +0#0000000&@48
|
||||
|2+0#0000e05#a8a8a8255| |i+0&#ffffff0|m|p|o|r|t| |j|a|v|a|.|l|a|n|g|.|S|t|r|i|n|g|;| +0#0000000&@48
|
||||
|2+0#0000e05#a8a8a8255| >*+0&#ffffff0|/| +0#0000000&@70
|
||||
||+0#0000e05#a8a8a8255| |i+0#e000e06#ffffff0|m|p|o|r|t| +0#0000000&|j|a|v|a|.|l|a|n|g|.|S+0#e000002&|t|r|i|n|g|;+0#0000000&| @48
|
||||
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@72
|
||||
|-+0#0000e05#a8a8a8255| |i+0#e000e06#ffffff0|m|p|o|r|t| +0#0000000&|j|a|v|a|.|l|a|n|g|.|C+0#00e0003&|o|m|p|a|r|a|b|l|e|;+0#0000000&| @3|/+0#0000e05&|*@2|/| +0#0000000&@35
|
||||
||+0#0000e05#a8a8a8255| |i+0#e000e06#ffffff0|m|p|o|r|t| +0#0000000&|j|a|v|a|.|l|a|n|g|.|O+0#e000002&|b|j|e|c|t|;+0#0000000&| @3|/+0#0000e05&@1| |/@1| +0#0000000&@39
|
||||
||+0#0000e05#a8a8a8255| |i+0#e000e06#ffffff0|m|p|o|r|t| +0#0000000&|j|a|v|a|.|l|a|n|g|.|S+0#e000002&|t|r|i|n|g|;+0#0000000&| @3|/+0#0000e05&|*@2|/| +0#0000000&@39
|
||||
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@72
|
||||
| +0#0000e05#a8a8a8255@1|i+0#e000e06#ffffff0|m|p|o|r|t| +0#0000000&|j|a|v|a|.|u|t|i|l|.|f|u|n|c|t|i|o|n|.|F|u|n|c|t|i|o|n|;| @37
|
||||
|-+0#0000e05#a8a8a8255| | +0#0000000#ffffff0@3|@+0#e000e06&|S|u|p@1|r|e|s@1|W|a|r|n|i|n|g|s|(|{+0#0000001#ffff4012| +0#0000000#ffffff0@49
|
||||
||+0#0000e05#a8a8a8255| | +0#0000000#ffffff0@3|"@2| @65
|
||||
||+0#0000e05#a8a8a8255| | +0#e000002#ffffff0@3|b|e|s|p|o|k|e| +0#0000000&@61
|
||||
||+0#0000e05#a8a8a8255| | +0#e000002#ffffff0@3|/|*| +0#0000000&@66
|
||||
||+0#0000e05#a8a8a8255| | +0#e000002#ffffff0@4|*| +0#0000000&@66
|
||||
||+0#0000e05#a8a8a8255| | +0#e000002#ffffff0@4|*|/| +0#0000000&@65
|
||||
@57|1|9|,|1| @9|1|0|%|
|
||||
|
Reference in New Issue
Block a user