chore(rc): change graphql block delimiters to support better regexs
This commit is contained in:
parent
ec80d83e71
commit
69a152d680
|
@ -27,7 +27,7 @@ hook -group graphql-highlight global WinSetOption filetype=graphql %{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
provide-module graphql %(
|
provide-module graphql %§
|
||||||
|
|
||||||
# Highlighters
|
# 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/line-description region '#' '\n' fill comment
|
||||||
add-highlighter shared/graphql/object/block-description region '"""' '"""' 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 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
|
add-highlighter shared/graphql/object/field/ regex ^\h*([A-Za-z][A-Za-z0-9_-]*)\h*$ 1:attribute
|
||||||
|
|
||||||
# Values
|
# Values
|
||||||
|
@ -96,4 +96,4 @@ define-command -hidden graphql-indent-on-new-line %<
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
|
|
||||||
)
|
§
|
||||||
|
|
Loading…
Reference in New Issue
Block a user