From 7289930c7bc2ab27c45418664a068e61d0cd58c8 Mon Sep 17 00:00:00 2001 From: Luke Mondy Date: Tue, 6 Dec 2022 09:28:00 +1100 Subject: [PATCH] Add grammar to support htmlEscape and htmlUnescape --- contrib/vim/syntax/hurl.vim | 2 +- docs/spec/hurl.grammar | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/vim/syntax/hurl.vim b/contrib/vim/syntax/hurl.vim index b501c73a6..662398c28 100644 --- a/contrib/vim/syntax/hurl.vim +++ b/contrib/vim/syntax/hurl.vim @@ -26,7 +26,7 @@ syntax keyword operator == != > >= < <= not syntax keyword query status url header cookie body jsonpath xpath regex variable duration sha256 md5 bytes syntax keyword predicate startsWith endsWith matches exists includes isInteger isFloat isBoolean isString isCollection syntax match predicate "contains" -syntax keyword filter count regex urlEncode urlDecode +syntax keyword filter count regex urlEncode urlDecode htmlEscape htmlUnescape syntax match escapeNumberSign "\\#" syntax match escapeQuote "\\\"" syntax region string start='"' end='"' contains=escapeQuote diff --git a/docs/spec/hurl.grammar b/docs/spec/hurl.grammar index 20de21401..801edca22 100644 --- a/docs/spec/hurl.grammar +++ b/docs/spec/hurl.grammar @@ -428,8 +428,11 @@ url-encode-filter: "urlEncode" url-decode-filter: "urlDecode" -to-int: "toInt" +html-encode-filter: "htmlEscape" +html-decode-filter: "htmlUnescape" + +to-int: "toInt" # Lexical Grammar