Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AIDL syntax #830

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions syntax/aidl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ endif

" Quit when a syntax file was already loaded.
if exists("b:current_syntax")
finish
finish
endif

source <sfile>:p:h/java.vim

syn keyword aidlParamDir in out inout
syn keyword aidlKeyword const oneway parcelable
if filereadable($VIMRUNTIME . "/syntax/java.vim")
source $VIMRUNTIME/syntax/java.vim
endif

" Needed for the 'in', 'out', 'inout' keywords to be highlighted.
syn cluster javaTop add=aidlParamDir
syn keyword aidlStorageClass in out inout const oneway
syn keyword aidlInterfaceDecl parcelable union

hi def link aidlParamDir StorageClass
hi def link aidlKeyword Keyword
hi def link aidlStorageClass javaStorageClass
hi def link aidlInterfaceDecl javaClassDecl

let b:current_syntax = "aidl"
Loading