Incorporate the changes for the folding mechanism
It closes #7 on GitHub.
This commit is contained in:
+7
-2
@@ -5,7 +5,12 @@ project adheres to [Semantic Versioning].
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## Changed
|
### Added
|
||||||
|
|
||||||
|
- It adds three Java syntax groups in order to be able to fold multiline
|
||||||
|
comments, 'import' statement blocks and 'import static' statement blocks.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
- Change the name of some of the Java syntax group added by the plugin.
|
- Change the name of some of the Java syntax group added by the plugin.
|
||||||
|
|
||||||
@@ -17,7 +22,7 @@ project adheres to [Semantic Versioning].
|
|||||||
|
|
||||||
+ `javaOdysseyDottedClass` becomes `javaOdysseyDotOperator`.
|
+ `javaOdysseyDottedClass` becomes `javaOdysseyDotOperator`.
|
||||||
|
|
||||||
## Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fix the Java highlight for nested class names in 'import' statements.
|
- Fix the Java highlight for nested class names in 'import' statements.
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ syntax match javaOdysseyGetStaticMethod "\%(\<import\>\s\+\<static\>\s\+\%(\w\
|
|||||||
syntax match javaOdysseyGetStaticClass "\%(\<import\>\s\+\<static\>\s\+\%(\w\+\.\)\+\)\@<=\%(\u\w*\)\%(\s*;\)\@="
|
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 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 javaOdysseyImplements "\%(\<implements\>\s\+\)\@<=\%(\<\u\w*\>\)\%(<\%(\u\w*\|,\|\s\|<\|>\)*>\)\=" contains=javaOdysseyGeneric,javaOdysseySeparator
|
||||||
|
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
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
" vim: foldmethod=marker
|
" vim: foldmethod=marker
|
||||||
|
|||||||
Reference in New Issue
Block a user