Update IntelliJ Hurl colorisation filetype.

This commit is contained in:
Jean-Christophe Amiel 2024-06-11 09:52:26 +02:00
parent 4b310449aa
commit 79d3445b20
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
7 changed files with 4 additions and 12 deletions

View File

@ -8,9 +8,9 @@
<option name="NUM_POSTFIXES" value="" />
</options>
<keywords keywords="GET;HEAD;POST;PUT;DELETE;CONNECT;DELETE;OPTIONS;TRACE;PATCH;LINK;UNLINK;PURGE;LOCK;UNLOCK;PROPFIND;VIEW" ignore_case="false" />
<keywords2 keywords="[Asserts];[Captures];[Cookies];[FormParams];[MultipartFormData];[QueryStringParams];[Options]" ignore_case="false" />
<keywords3 keywords="status;url;header;cookie;body;xpath;jsonpath;regex;variable;duration;sha256;md5;bytes;HTTP;HTTP/*;HTTP/1.0;HTTP/1.1;HTTP/2" ignore_case="false"/>
<keywords4 keywords="&lt;;&lt;=;==;!=;&gt;;&gt;=;contains;count;exists;includes;not;startsWith;endsWith;matches;isFloat;isBoolean;isString;isCollection" ignore_case="false" />
<keywords2 keywords="[Asserts];[BasicAuth];[Captures];[Cookies];[FormParams];[MultipartFormData];[QueryStringParams];[Options]" ignore_case="false" />
<keywords3 keywords="certificate;status;url;header;cookie;body;xpath;jsonpath;regex;variable;duration;sha256;md5;bytes;HTTP;HTTP/*;HTTP/1.0;HTTP/1.1;HTTP/2" ignore_case="false"/>
<keywords4 keywords="not;&lt;;&lt;=;==;!=;&gt;;&gt;=;startsWith;endsWith;contains;includes;matches;exists;isBoolean;isCollection;isDate;isEmpty;isFloat;isInteger;isIsoDate;isNumber;isString;count;daysAfterNow;daysBeforeNow;decode;format;htmlEscape;htmlUnescape;nth;replace;split;toDate;toInt;urlEncode;urlDecode" ignore_case="false" />
</highlighting>
<extensionMap>
<mapping ext="hurl" />

View File

@ -1,7 +1,6 @@
# Access an SSL endpoint with a custom CA
# Remark: The option --ssl-no-revoke must be set for windows
GET https://localhost:8002/hello
HTTP 200
`Hello World!`

View File

@ -1,5 +1,4 @@
GET https://localhost:8001/hello
HTTP 200
`Hello World!`

View File

@ -1 +1 @@
{"cookies":[],"entries":[{"asserts":[{"line":5,"success":true},{"line":5,"success":true},{"line":6,"success":true}],"calls":[{"request":{"cookies":[],"headers":[{"name":"Host","value":"localhost:8002"},{"name":"Accept","value":"*/*"},{"name":"User-Agent","value":"hurl/<<<.*?>>>"}],"method":"GET","queryString":[],"url":"https://localhost:8002/hello"},"response":{"certificate":{"expire_date":"2025-03-15 10:48:00 UTC","issuer":"C<<<.*?>>>=<<<.*?>>>US, ST<<<.*?>>>=<<<.*?>>>Denial, L<<<.*?>>>=<<<.*?>>>Springfield, O<<<.*?>>>=<<<.*?>>>Dis, CN<<<.*?>>>=<<<.*?>>>myCA","serial_number":"3e:23:bb:87:21:f8:10:85:36:c2:72:c9:64:34:d6:15:d1:8c:69:15","start_date":"2022-12-11 10:48:00 UTC","subject":"C<<<.*?>>>=<<<.*?>>>US, ST<<<.*?>>>=<<<.*?>>>Denial, L<<<.*?>>>=<<<.*?>>>Springfield, O<<<.*?>>>=<<<.*?>>>Dis, CN<<<.*?>>>=<<<.*?>>>localhost"},"cookies":[],"headers":[{"name":"Server","value":"Werkzeug/<<<.*?>>> Python/<<<.*?>>>"},{"name":"Date","value":"<<<.*?>>>"},{"name":"Content-Type","value":"text/html; charset=utf-8"},{"name":"Content-Length","value":"12"},{"name":"Connection","value":"close"}],"httpVersion":"HTTP/1.1","status":200},"timings":{"app_connect":<<<\d+>>>,"begin_call":"<<<.*?>>>","connect":<<<\d+>>>,"end_call":"<<<.*?>>>","name_lookup":<<<\d+>>>,"pre_transfer":<<<\d+>>>,"start_transfer":<<<\d+>>>,"total":<<<\d+>>>}}],"captures":[],"index":1,"line":3,"time":<<<\d+>>>}],"filename":"ssl/cacert.hurl","success":true,"time":<<<\d+>>>}
{"cookies":[],"entries":[{"asserts":[{"line":4,"success":true},{"line":4,"success":true},{"line":5,"success":true}],"calls":[{"request":{"cookies":[],"headers":[{"name":"Host","value":"localhost:8002"},{"name":"Accept","value":"*/*"},{"name":"User-Agent","value":"hurl/<<<.*?>>>"}],"method":"GET","queryString":[],"url":"https://localhost:8002/hello"},"response":{"certificate":{"expire_date":"2025-03-15 10:48:00 UTC","issuer":"C<<<.*?>>>=<<<.*?>>>US, ST<<<.*?>>>=<<<.*?>>>Denial, L<<<.*?>>>=<<<.*?>>>Springfield, O<<<.*?>>>=<<<.*?>>>Dis, CN<<<.*?>>>=<<<.*?>>>myCA","serial_number":"3e:23:bb:87:21:f8:10:85:36:c2:72:c9:64:34:d6:15:d1:8c:69:15","start_date":"2022-12-11 10:48:00 UTC","subject":"C<<<.*?>>>=<<<.*?>>>US, ST<<<.*?>>>=<<<.*?>>>Denial, L<<<.*?>>>=<<<.*?>>>Springfield, O<<<.*?>>>=<<<.*?>>>Dis, CN<<<.*?>>>=<<<.*?>>>localhost"},"cookies":[],"headers":[{"name":"Server","value":"Werkzeug/<<<.*?>>> Python/<<<.*?>>>"},{"name":"Date","value":"<<<.*?>>>"},{"name":"Content-Type","value":"text/html; charset=utf-8"},{"name":"Content-Length","value":"12"},{"name":"Connection","value":"close"}],"httpVersion":"HTTP/1.1","status":200},"timings":{"app_connect":<<<\d+>>>,"begin_call":"<<<.*?>>>","connect":<<<\d+>>>,"end_call":"<<<.*?>>>","name_lookup":<<<\d+>>>,"pre_transfer":<<<\d+>>>,"start_transfer":<<<\d+>>>,"total":<<<\d+>>>}}],"captures":[],"index":1,"line":3,"time":<<<\d+>>>}],"filename":"ssl/cacert.hurl","success":true,"time":<<<\d+>>>}

View File

@ -1,4 +1,3 @@
GET https://localhost:8001/hello
HTTP 200
`Hello World!`

View File

@ -1,8 +1,6 @@
GET https://localhost:8001/hello
HTTP 200
[Asserts]
certificate "Subject" replace " = " "=" replace ";" ", " == "C=US, ST=Denial, L=Springfield, O=Dis, CN=localhost"
certificate "Issuer" replace " = " "=" replace ";" ", " == "C=US, ST=Denial, L=Springfield, O=Dis, CN=localhost"
certificate "Start-Date" isDate

View File

@ -1,7 +1,6 @@
GET https://localhost:8001/hello
[Options]
insecure: true
HTTP 200
`Hello World!`
@ -11,7 +10,6 @@ GET https://localhost:8001/hello
# Test that options overridden is possible, last is the winner.
insecure: false
insecure: true
HTTP 200
`Hello World!`
@ -19,6 +17,5 @@ HTTP 200
GET https://localhost:8001/hello
[Options]
cacert: ssl/server/cert.selfsigned.pem # with a custom certificate
HTTP 200
`Hello World!`