Skip to content

Commit

Permalink
Recognize JSON and XML by media type suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Aug 2, 2021
1 parent 556aa14 commit e0d73d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions http-request-response.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ contexts:

content-type:
- meta_content_scope: meta.headers.http-request-response
- match: (application/json|text/json){{content_type_sep}}
- match: (application/json|text/json|[\w.-]+/[\w.-]+\+json){{content_type_sep}}
set: [content-type-json, header-value]
- match: (application/xml|text/xml){{content_type_sep}}
set: [content-type-xml, header-value]
- match: (application/xhtml\+xml|text/html){{content_type_sep}}
set: [content-type-html, header-value]
- match: (application/xml|text/xml|[\w.-]+/[\w.-]+\+xml){{content_type_sep}}
set: [content-type-xml, header-value]
- match: (application/x-www-form-urlencoded){{content_type_sep}}
set: [content-type-querystring, header-value]
- match: (multipart/form-data){{content_type_sep}}
Expand Down

0 comments on commit e0d73d2

Please sign in to comment.