chore(rc): change graphql block delimiters to support better regexs

This commit is contained in:
Gianni Chiappetta 2021-01-14 11:40:17 -05:00
parent ec80d83e71
commit 69a152d680
No known key found for this signature in database
GPG Key ID: 0E83B3D88ECF5E7C

View File

@ -27,7 +27,7 @@ hook -group graphql-highlight global WinSetOption filetype=graphql %{
}
provide-module graphql %(
provide-module graphql %§
# Highlighters
# ‾‾‾‾‾‾‾‾‾‾‾‾
@ -43,7 +43,7 @@ add-highlighter shared/graphql/object region -recurse \{ [{] [}] regions
add-highlighter shared/graphql/object/line-description region '#' '\n' fill comment
add-highlighter shared/graphql/object/block-description region '"""' '"""' fill comment
add-highlighter shared/graphql/object/field default-region group
add-highlighter shared/graphql/object/field/ regex ([A-Za-z][A-Za-z0-9_-]*)(?:\([\w\d\h,:$=!"_]*\))?\h*[:{] 1:attribute
add-highlighter shared/graphql/object/field/ regex ([A-Za-z][A-Za-z0-9_-]*)(?:\([^)]*\))?\h*[:{] 1:attribute
add-highlighter shared/graphql/object/field/ regex ^\h*([A-Za-z][A-Za-z0-9_-]*)\h*$ 1:attribute
# Values
@ -96,4 +96,4 @@ define-command -hidden graphql-indent-on-new-line %<
>
>
)
§