Home Explore Blog CI



neovim

23th chunk of `runtime/doc/syntax.txt`
95479f32447e70d63af2b3d0658b30a00b7f24ad678ab6ab0000000100000fa7
 g:java_no_trail_space_error = 1
	:let g:java_no_tab_space_error = 1

In order to highlight nested parens with different colors, define colors for
`javaParen`, `javaParen1`, and `javaParen2`.  For example, >
	:hi link javaParen Comment
or >
	:hi javaParen ctermfg=blue guifg=#0000ff

Certain modifiers are incompatible with each other, e.g. `abstract` and
`final`: >
	:syn list javaConceptKind
and can be differently highlighted as a group than other modifiers with >
	:hi link javaConceptKind NonText

If you notice highlighting errors while scrolling backwards, which are fixed
when redrawing with CTRL-L, try setting the "g:java_minlines" variable to
a larger number: >
	:let g:java_minlines = 50
This will make the syntax synchronization start 50 lines before the first
displayed line.  The default value is 10.  The disadvantage of using a larger
number is that redrawing can become slow.

Significant changes to the Java platform are gradually introduced in the form
of JDK Enhancement Proposals (JEPs) that can be implemented for a release and
offered as its preview features.  It may take several JEPs and a few release
cycles for such a feature to become either integrated into the platform or
withdrawn from this effort.  To cater for early adopters, there is optional
support in Vim for syntax related preview features that are implemented.  You
can request it by specifying a list of preview feature numbers as follows: >
	:let g:java_syntax_previews = [488, 494]

The supported JEP numbers are to be drawn from this table:
	`430`: String Templates [JDK 21]
	`488`: Primitive types in Patterns, instanceof, and switch
	`494`: Module Import Declarations

Note that as soon as the particular preview feature will have been integrated
into the Java platform, its entry will be removed from the table and related
optionality will be discontinued.
						*java-package-info-url*
https://github.com/zzzyxwvut/java-vim/blob/master/tools/javaid/src/javaid/package-info.java

JSON			*json.vim* *ft-json-syntax* *g:vim_json_conceal*
						*g:vim_json_warnings*

The json syntax file provides syntax highlighting with conceal support by
default. To disable concealment: >
	let g:vim_json_conceal = 0

To disable syntax highlighting of errors: >
	let g:vim_json_warnings = 0


JQ				*jq.vim* *jq_quote_highlight* *ft-jq-syntax*

To disable numbers having their own color add the following to your vimrc: >
	hi link jqNumber Normal

If you want quotes to have different highlighting than strings >
	let g:jq_quote_highlight = 1

KCONFIG							*ft-kconfig-syntax*

Kconfig syntax highlighting language.  For syntax syncing, you can configure
the following variable (default: 50): >

	let kconfig_minlines = 50

To configure a bit more (heavier) highlighting, set the following variable: >

	let kconfig_syntax_heavy = 1

LACE						*lace.vim* *ft-lace-syntax*

Lace (Language for Assembly of Classes in Eiffel) is case insensitive, but the
style guide lines are not.  If you prefer case insensitive highlighting, just
define the vim variable 'lace_case_insensitive' in your startup file: >
	:let lace_case_insensitive=1


LF (LFRC)		*lf.vim* *ft-lf-syntax* *g:lf_shell_syntax*
						*b:lf_shell_syntax*

For the lf file manager configuration files (lfrc) the shell commands syntax
highlighting can be changed globally and per buffer by setting a different
'include' command search pattern using these variables: >
	let g:lf_shell_syntax = "syntax/dosbatch.vim"
	let b:lf_shell_syntax = "syntax/zsh.vim"

These variables are unset by default.

The default 'include' command search pattern is 'syntax/sh.vim'.


LEX						*lex.vim* *ft-lex-syntax*

Lex uses brute-force synchronizing as the "^%%$" section delimiter
gives no clue as to what section follows.  Consequently, the value for >
	:syn sync minlines=300
may be changed by the user if they are experiencing synchronization
difficulties (such as may happen with large lex files).


LIFELINES				*lifelines.vim* *ft-lifelines-syntax*

To highlight deprecated

Title: Customizing Java, JSON, JQ, Kconfig, Lace, LF (LFRC), Lex, and Lifelines Syntax Highlighting in Vim
Summary
This section details customization options for various syntax highlighting configurations in Vim. It covers options for suppressing whitespace errors, customizing highlighting for nested parentheses and incompatible modifiers, and adjusting syntax synchronization settings for Java. It also discusses optional support for Java preview features via JDK Enhancement Proposals (JEPs). Furthermore, the document explains how to disable JSON concealment and syntax error highlighting, customize JQ quote and number highlighting, adjust Kconfig syntax synchronization, enable case-insensitive highlighting for Lace, configure shell command syntax highlighting for LF (LFRC) files, adjust Lex syntax synchronization, and highlight deprecated lifelines syntax.