aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/syntax.txt
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-07-31 23:00:41 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-08-01 10:14:10 +0200
commitd3019419e77669db4eb4959f673dff1d4963005e (patch)
tree3da1b716746c0e9ce46c2d96152fc913f9f0d99a /runtime/doc/syntax.txt
parent2339bd894b33b753018bda7aea4e49a2bc956e56 (diff)
downloadrneovim-d3019419e77669db4eb4959f673dff1d4963005e.tar.gz
rneovim-d3019419e77669db4eb4959f673dff1d4963005e.tar.bz2
rneovim-d3019419e77669db4eb4959f673dff1d4963005e.zip
vim-patch:30a8ad6: runtime(java): Document "g:java_space_errors" and "g:java_comment_strings"
closes: vim/vim#15399 https://github.com/vim/vim/commit/30a8ad675d183c15c47b42e37199e98e2f924d69 Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r--runtime/doc/syntax.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 945a85d83f..0bade0b471 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1660,6 +1660,16 @@ actually appear in Javadoc comments. The variables to use are >
:let g:java_vb = 1
Note that these three variables are maintained in the HTML syntax file.
+Numbers and strings can be recognized in non-Javadoc comments with >
+ :let g:java_comment_strings = 1
+
+Trailing whitespace characters or a run of space characters before a tab
+character can be marked as an error with >
+ :let g:java_space_errors = 1
+but either kind of an error can be suppressed by also defining one of >
+ :let 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