Compare commits

...

2 Commits

Author SHA1 Message Date
NariyasuHeseri
e2c32d34e8 Merge 6735796c5f into f5393cfee0 2024-12-10 06:56:47 +00:00
Nariyasu Heseri
6735796c5f Fix AIDL syntax
Since syntax/java.vim was removed, we base the syntax highlighting on
the Vim's builtin syntax/java.vim.
2024-12-10 15:58:15 +09:00

View File

@@ -10,18 +10,17 @@ endif
" Quit when a syntax file was already loaded. " Quit when a syntax file was already loaded.
if exists("b:current_syntax") if exists("b:current_syntax")
finish finish
endif endif
source <sfile>:p:h/java.vim if filereadable($VIMRUNTIME . "/syntax/java.vim")
source $VIMRUNTIME/syntax/java.vim
endif
syn keyword aidlParamDir in out inout syn keyword aidlStorageClass in out inout const oneway
syn keyword aidlKeyword const oneway parcelable syn keyword aidlInterfaceDecl parcelable union
" Needed for the 'in', 'out', 'inout' keywords to be highlighted. hi def link aidlStorageClass javaStorageClass
syn cluster javaTop add=aidlParamDir hi def link aidlInterfaceDecl javaClassDecl
hi def link aidlParamDir StorageClass
hi def link aidlKeyword Keyword
let b:current_syntax = "aidl" let b:current_syntax = "aidl"