From fe3f8d227179c46c6a3c5b78c84699ff6c4aa9cd Mon Sep 17 00:00:00 2001 From: Gianni Chiappetta Date: Thu, 14 Jan 2021 15:46:50 -0500 Subject: [PATCH] chore(rc): support nested field strings in graphql --- rc/filetype/graphql.kak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc/filetype/graphql.kak b/rc/filetype/graphql.kak index ded58b80..7ac16c07 100644 --- a/rc/filetype/graphql.kak +++ b/rc/filetype/graphql.kak @@ -49,7 +49,8 @@ add-highlighter shared/graphql/object/field/ regex ^\h*([A-Za-z][A-Za-z0-9_-]*)\ # Values add-highlighter shared/graphql/object/field/values regex \b(true|false|null|\d+(?:\.\d+)?(?:[eE][+-]?\d*)?)\b 0:value add-highlighter shared/graphql/object/field/variables regex \$[a-zA-Z0-9]+\b 0:variable -add-highlighter shared/graphql/object/field/string regex '"[^"]*"' 0:string +# add-highlighter shared/graphql/object/field/string regex '"([^"]|\\")*"' 0:string +add-highlighter shared/graphql/object/field/string regex '"(?:[^"\\]|\\.)*"' 0:string # Meta add-highlighter shared/graphql/object/field/directives regex @(?:include|skip) 0:meta