diff --git a/http-request-response.sublime-syntax b/http-request-response.sublime-syntax index e20945d..052f946 100644 --- a/http-request-response.sublime-syntax +++ b/http-request-response.sublime-syntax @@ -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: (?:^---+.*$)