Merge the changes for the Java method references
It closes #10 on Github.
This commit is contained in:
@@ -17,6 +17,9 @@ project adheres to [Semantic Versioning].
|
||||
|
||||
+ Some new syntax groups for types and functions have been added.
|
||||
|
||||
- Add the support for the Java method references by using the `Type` and
|
||||
`Function` highlight groups.
|
||||
|
||||
- Adds three Java syntax groups in order to be able to fold multiline
|
||||
comments, `import` statement blocks and `import static` statement blocks.
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@ syntax match javaOdysseyGetStaticMethod "\%(\<import\>\s\+\<static\>\s\+\%(\w\
|
||||
syntax match javaOdysseyGetStaticClass "\%(\<import\>\s\+\<static\>\s\+\%(\w\+\.\)\+\)\@<=\%(\u\w*\)\%(\s*;\)\@="
|
||||
syntax match javaOdysseyExtends "\%(\<extends\>\s\+\)\@<=\%(\<\u\w*\>\)\%(<\%(\u\w*\|,\|\s\|<\|>\)*>\)\=" contains=javaOdysseyGeneric,javaOdysseySeparator
|
||||
syntax match javaOdysseyImplements "\%(\<implements\>\s\+\)\@<=\%(\<\u\w*\>\)\%(<\%(\u\w*\|,\|\s\|<\|>\)*>\)\=" contains=javaOdysseyGeneric,javaOdysseySeparator
|
||||
syntax match javaOdysseyMethodRef "::\<\l\w*\>"ms=s+2 containedin=javaParenT,javaParenT1,javaParenT2
|
||||
syntax match javaOdysseyClassMethodRef "\<\u\w*\>::"me=e-2 containedin=javaParenT,javaParenT1,javaParenT2
|
||||
syntax region javaOdysseyComment start=+/\*+ end=+\*/+ transparent fold keepend
|
||||
syntax region javaOdysseyImport start=/\%(^import\)\@<=\s.\+;/ end=+^\s*$+ transparent fold keepend
|
||||
syntax region javaOdysseyImportStatic start=/\%(^import static\)\@<=\s.\+;/ end=+^\s*$+ transparent fold keepend
|
||||
|
||||
@@ -282,6 +282,8 @@ call s:l( 'javaOdysseyArrow', 'Operator')
|
||||
call s:l( 'javaOdysseyLombok', 'Statement')
|
||||
call s:l( 'javaOdysseyEnumValue', 'Constant')
|
||||
call s:l('javaOdysseyEnumConstructor', 'Constant')
|
||||
call s:l( 'javaOdysseyMethodRef', 'Function')
|
||||
call s:l( 'javaOdysseyClassMethodRef', 'Type')
|
||||
|
||||
if exists('g:odyssey_java_javadoc') && g:odyssey_java_javadoc != 0
|
||||
if exists('g:java_ignore_javadoc')
|
||||
|
||||
Reference in New Issue
Block a user