annotate runtime/syntax/testdir/dumps/java_methods_indent8_03.dump @ 35434:5fc5b71e2551

runtime(java): Fold multi-line comments with the syntax kind of &fdm (#15016) Commit: https://github.com/vim/vim/commit/371bab05947b32f26d1b32922e5dc38343a875bc Author: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com> Date: Sun Jun 16 09:42:55 2024 +0300 runtime(java): Fold multi-line comments with the syntax kind of &fdm (https://github.com/vim/vim/issues/15016) Also: - Restore the capability to mark as an error braces nested in parens with g:javaInParen. - Try not to fold top-level-type bodies. (Defining multiple package-private top level types in a single source file is not recommended as it can impose order among compilation units; so it is assumed that only one such top level type is usually defined.) - Compose ?method header? highlighting and block braces folding. - Do not highlight block braces whenever ?method header? highlighting is requested. This bundling of ?method headers? and block braces for highlighting can be traced back to Vim v5.0; however, no comment or documentation entry conveys any justification. For example, it is hard to discover the connection between block braces for "while", "if", etc., statements and method body block braces. The former behaviour can be attained in, e.g. ~/.vim/after/syntax/java.vim: ------------------------------------------------------------ if exists("g:java_highlight_functions") syn clear javaBlock javaInParen syn match javaBlockOther "[{}]" syn region javaBlock transparent matchgroup=javaBlockStart \ start="\%(^\|^\S[^:]\+\)\@120<!{" end="}" fold hi def link javaBlockStart javaFuncDef hi def link javaBlockOther javaBlockStart if exists("g:java_mark_braces_in_parens_as_errors") syn match javaInParen contained "[{}]" endif endif ------------------------------------------------------------ Note: Read ?a method header omitting a _throws_ clause? for every ?method header? appellation used above. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 16 Jun 2024 08:45:13 +0200
parents 8e9ad34edf5f
children ff0250ab0d8a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
35078
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 | +0#00e0e07#ffffff0@7|@+0#e000e06&|T|ɐ|g@1|a|b|l|ɘ| +0#00e0e07&|@+0#e000e06&|T|ɐ|g@1|a|b|l|ɘ| +0#00e0e07&|a+0#4040ff13&|b|s|t|r|a|c|t| +0#00e0e07&|v+0#00e0003&|o|i|d| +0#00e0e07&|a|s|c|i@1|$|0|_|(|/+0#0000e05&@15| +0#0000000&@7
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 | +0#00e0e07&@63|)|;+0#0000000&| @8
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 | +0#00e0e07&@7|@+0#e000e06&|T|ɐ|g@1|a|b|l|ɘ| +0#00e0e07&|@+0#e000e06&|T|ɐ|g@1|a|b|l|ɘ| +0#00e0e07&|a+0#4040ff13&|b|s|t|r|a|c|t| +0#00e0e07&|<|α|,| |β|>| |Τ|ʬ|<|α|>| |μ|ʭ@1|$|0|_|(| +0#0000000&@17
35393
8e9ad34edf5f runtime(java): Include element values in non-marker annotations (#14979)
Christian Brabandt <cb@256bit.org>
parents: 35152
diff changeset
4 | +0#00e0e07&@31|@+0#e000e06&|S|u|p@1|r|e|s@1|W|a|r|n|i|n|g|s|(|"+0#e000002&|b|e|s|p|o|k|e|"|)+0#e000e06&| +0#00e0e07&|β| |b|)|;+0#0000000&| @8
35078
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 @75
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 | +0#00e0e07&@7>@+0#e000e06&|T|ɐ|g@1|a|b|l|ɘ| +0#00e0e07&|p+0#00e0003&|r|i|v|a|t|e| +0#00e0e07&|n+0#e000e06&|a|t|i|v|e| +0#00e0e07&|v+0#00e0003&|o|i|d| +0#00e0e07&|a|s|c|i@1|$|1|_|(|/+0#0000e05&|*|/@10|/+0#ffffff16#ff404010|*+0#0000e05#ffffff0|/|)+0#00e0e07&|;+0#0000000&| @9
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 | +0#00e0e07&@7|@+0#e000e06&|T|ɐ|g@1|a|b|l|ɘ| +0#00e0e07&|p+0#00e0003&|r|i|v|a|t|e| +0#00e0e07&|n+0#e000e06&|a|t|i|v|e| +0#00e0e07&|<|α|,| |β|>| |Τ|ʬ|<|α|>|[|]| |μ|ʭ@1|$|1|_|(| +0#0000000&@19
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 | +0#00e0e07&@23|j|a|v|a|.|u|t|i|l|.|f|u|n|c|t|i|o|n|.|F|u|n|c|t|i|o|n|<|β|,| |Τ|ʬ|<|α|>|[|]|>| |ƒ|)|;+0#0000000&| @7
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 @75
35434
5fc5b71e2551 runtime(java): Fold multi-line comments with the syntax kind of &fdm (#15016)
Christian Brabandt <cb@256bit.org>
parents: 35393
diff changeset
10 | +0#00e0e07&@7|v+0#00e0003&|o|i|d| +0#00e0e07&|A|s|c|i@1|$|2|_|(|)| +0#0000000&|{| |}| @47
5fc5b71e2551 runtime(java): Fold multi-line comments with the syntax kind of &fdm (#15016)
Christian Brabandt <cb@256bit.org>
parents: 35393
diff changeset
11 | +0#00e0e07&@7|<|T|,| |U| |e|x|t|e|n|d|s| |S|t|y|l|a|b|l|e|<|T|>@1| |v+0#00e0003&|o|i|d| +0#00e0e07&|Μ|ʭ@1|$|2|_|(|U| |u|)| +0#0000000&|{| |}| @19
35078
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 @75
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 | +0#00e0e07&@7|s+0#00e0003&|t|a|t|i|c| +0#00e0e07&|f+0#4040ff13&|i|n|a|l| +0#00e0e07&|n+0#e000e06&|a|t|i|v|e| +0#00e0e07&|s+0#00e0003&|y|n|c|h|r|o|n|i|z|e|d| +0#00e0e07&|v+0#00e0003&|o|i|d| +0#00e0e07&|a|s|c|i@1|$|9|8|_|(|)|;+0#0000000&| @16
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 | +0#00e0e07&@7|s+0#00e0003&|t|a|t|i|c| +0#00e0e07&|f+0#4040ff13&|i|n|a|l| +0#00e0e07&|n+0#e000e06&|a|t|i|v|e| +0#00e0e07&|s+0#00e0003&|y|n|c|h|r|o|n|i|z|e|d| +0#00e0e07&|<|α|,| |β|>| |Τ|ʬ|<|α|>|[|]|[|]| |μ|ʭ@1|$|9|8|_|(| +0#0000000&@8
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 | +0#00e0e07&@23|j|a|v|a|.|u|t|i|l|.|f|u|n|c|t|i|o|n|.|F|u|n|c|t|i|o|n|<|β|,| |Τ|ʬ|<|α|>|[|]|[|]|>| |ƒ|)|;+0#0000000&| @5
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 @75
35393
8e9ad34edf5f runtime(java): Include element values in non-marker annotations (#14979)
Christian Brabandt <cb@256bit.org>
parents: 35152
diff changeset
17 @8|@+0#e000e06&|S|u|p@1|r|e|s@1|W|a|r|n|i|n|g|s|(|"+0#e000002&|s|t|r|i|c|t|f|p|"|)+0#e000e06&| +0#0000000&@37
35078
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 | +0#00e0e07&@7|p+0#00e0003&|r|o|t|e|c|t|e|d| +0#00e0e07&|s+0#00e0003&|t|a|t|i|c| +0#00e0e07&|f+0#4040ff13&|i|n|a|l| +0#00e0e07&|s+0#00e0003&|y|n|c|h|r|o|n|i|z|e|d| +0#00e0e07&|s+0#00e0003&|t|r|i|c|t|f|p| +0#00e0e07&|v+0#00e0003&|o|i|d| +0#00e0e07&|a|s|c|i@1|$|9@1|_|(|)| +0#0000000&@5
35434
5fc5b71e2551 runtime(java): Fold multi-line comments with the syntax kind of &fdm (#15016)
Christian Brabandt <cb@256bit.org>
parents: 35393
diff changeset
19 @8|{| |a|s|c|i@1|$|9|8|_|(|)|;| |}| @50
35078
c2f6b7458a30 runtime(java): Improve the recognition of the "indent" method declarations (#14659)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 @57|5@1|,|9| @9|6|7|%|