File tree Expand file tree Collapse file tree 3 files changed +32
-13
lines changed
Expand file tree Collapse file tree 3 files changed +32
-13
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## Unreleased
4+
5+ - Added new keywords ` ndk_header ` and ` rust_type ` .
6+
37## [ 0.1.1]
48
59- Fixed issue with declarations nested under interface, parcelable, and union declarations.
Original file line number Diff line number Diff line change @@ -99,15 +99,20 @@ repository:
9999 ' 5 ' : {name: punctuation.definition.generic.end.aidl}
100100 ' 6 ' : {name: punctuation.terminator.aidl}
101101 - name : meta.parcelable.aidl
102- match : ' (parcelable)\s+((?:[_a-zA-Z][_a-zA-Z0-9]*)(?:\.([_a-zA-Z][_a-zA-Z0-9]*))*)\s*(cpp_header)\s*(")([^\"]*)(")(;) '
102+ match : ' (parcelable)\s+((?:[_a-zA-Z][_a-zA-Z0-9]*)(?:\.([_a-zA-Z][_a-zA-Z0-9]*))*)\s*(;)? '
103103 captures :
104104 ' 1 ' : {name: storage.type.parcelable.aidl}
105105 ' 2 ' : {name: entity.name.type.parcelable.aidl}
106- ' 3 ' : {name: keyword.aidl}
107- ' 4 ' : {name: punctuation.definition.string.begin.aidl}
108- ' 5 ' : {name: string.quoted.double.aidl}
109- ' 6 ' : {name: punctuation.definition.string.end.aidl}
110- ' 7 ' : {name: punctuation.terminator.aidl}
106+ ' 3 ' : {name: punctuation.terminator.aidl}
107+ - name : meta.parcelable.aidl
108+ match : ' (cpp_header|ndk_header|rust_type)\s*(")([^\"]*)(")'
109+ captures :
110+ ' 1 ' : {name: keyword.aidl}
111+ ' 2 ' : {name: punctuation.definition.string.begin.aidl}
112+ ' 3 ' : {name: string.quoted.double.aidl}
113+ ' 4 ' : {name: punctuation.definition.string.end.aidl}
114+ - name : punctuation.terminator.aidl
115+ match : ' ;'
111116 # enum_decl
112117 - name : meta.enum.aidl
113118 begin : ' (enum)\s+([_a-zA-Z][_a-zA-Z0-9]*)\s*(\{)'
Original file line number Diff line number Diff line change 184184 },
185185 {
186186 "name" : " meta.parcelable.aidl" ,
187- "match" : " (parcelable)\\ s+((?:[_a-zA-Z][_a-zA-Z0-9]*)(?:\\ .([_a-zA-Z][_a-zA-Z0-9]*))*)\\ s*(cpp_header) \\ s*( \" )([^ \\\" ]*)( \" )(;) " ,
187+ "match" : " (parcelable)\\ s+((?:[_a-zA-Z][_a-zA-Z0-9]*)(?:\\ .([_a-zA-Z][_a-zA-Z0-9]*))*)\\ s*(;)? " ,
188188 "captures" : {
189189 "1" : {
190190 "name" : " storage.type.parcelable.aidl"
193193 "name" : " entity.name.type.parcelable.aidl"
194194 },
195195 "3" : {
196+ "name" : " punctuation.terminator.aidl"
197+ }
198+ }
199+ },
200+ {
201+ "name" : " meta.parcelable.aidl" ,
202+ "match" : " (cpp_header|ndk_header|rust_type)\\ s*(\" )([^\\\" ]*)(\" )" ,
203+ "captures" : {
204+ "1" : {
196205 "name" : " keyword.aidl"
197206 },
198- "4 " : {
207+ "2 " : {
199208 "name" : " punctuation.definition.string.begin.aidl"
200209 },
201- "5 " : {
210+ "3 " : {
202211 "name" : " string.quoted.double.aidl"
203212 },
204- "6 " : {
213+ "4 " : {
205214 "name" : " punctuation.definition.string.end.aidl"
206- },
207- "7" : {
208- "name" : " punctuation.terminator.aidl"
209215 }
210216 }
211217 },
218+ {
219+ "name" : " punctuation.terminator.aidl" ,
220+ "match" : " ;"
221+ },
212222 {
213223 "name" : " meta.enum.aidl" ,
214224 "begin" : " (enum)\\ s+([_a-zA-Z][_a-zA-Z0-9]*)\\ s*(\\ {)" ,
You can’t perform that action at this time.
0 commit comments