Skip to content

Commit

Permalink
Merge pull request #2 from scop/first-line-match
Browse files Browse the repository at this point in the history
Add first_line_match for content based recognition
  • Loading branch information
keith-hall authored Aug 1, 2021
2 parents 111e36a + 924ca08 commit 421fabe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions http-request-response.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ scope: text.http-request-response
name: HTTP Request and Response
file_extensions:
- http
first_line_match: |-
(?x:
^
(?:
(?:GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\ .+\ HTTP/\d(?:\.\d)?$
|
(?:HTTP/\d(?:\.\d)?\ \d{3}\ )
)
)
variables:
content_type_sep: (?=;|$)
multipart_form_data_boundary: (?:^---+.*$)
Expand Down

0 comments on commit 421fabe

Please sign in to comment.