runtime(java): Manage byte limits for variable-width lookbehind assertions
Raise the byte limits from 80 to 120 for "javaFuncDef" and
"java*CommentTitle"; and support selecting other arbitrary
values with
------------------------------------------------------------
let g:java_lookbehind_byte_counts = {
\ 'javaMarkdownCommentTitle': 240,
\ }
------------------------------------------------------------
for related groups of syntax definitions, referring to their
names with dictionary keys.
Over-80-Byte-Limit Lookbehind Examples:
https://raw.githubusercontent.com/openjdk/jdk/refs/tags/jdk-24%2B36/src/java.base/share/classes/sun/security/x509/NamedX509Key.java [Lines 43 & 44]
https://raw.githubusercontent.com/openjdk/jdk/refs/tags/jdk-24%2B36/src/jdk.compiler/share/classes/com/sun/tools/javac/util/GraphUtils.java [Line 154]
closes: #17921
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
adfea9b4e6
commit
7132935413
@ -1,9 +1,9 @@
|
||||
// VIM_TEST_SETUP setlocal foldenable foldcolumn=2 foldmethod=syntax
|
||||
// VIM_TEST_SETUP let g:java_foldtext_show_first_or_second_line = 1
|
||||
// VIM_TEST_SETUP let g:java_lookbehind_byte_counts = {'javaBlock': -1}
|
||||
// VIM_TEST_SETUP highlight link javaBlockOtherStart Structure
|
||||
// VIM_TEST_SETUP highlight link javaBlockStart Todo
|
||||
|
||||
|
||||
@SuppressWarnings({
|
||||
"""
|
||||
bespoke
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
// VIM_TEST_SETUP setlocal nofoldenable
|
||||
// VIM_TEST_SETUP let g:java_mark_braces_in_parens_as_errors = 1
|
||||
// VIM_TEST_SETUP let g:java_lookbehind_byte_counts = {'javaBlock': -1}
|
||||
// VIM_TEST_SETUP highlight link javaBlockOtherStart Structure
|
||||
// VIM_TEST_SETUP highlight link javaBlockStart Todo
|
||||
|
||||
|
||||
@SuppressWarnings({
|
||||
"""
|
||||
bespoke
|
||||
|
||||
Reference in New Issue
Block a user