Highlight parenthesized paths. Also change '()' to '§' for module quoting.
This commit is contained in:
parent
f1f50d0657
commit
4722db7103
|
@ -26,7 +26,7 @@ hook -group nix-highlight global WinSetOption filetype=nix %{
|
||||||
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/nix }
|
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/nix }
|
||||||
}
|
}
|
||||||
|
|
||||||
provide-module nix %(
|
provide-module nix %§
|
||||||
|
|
||||||
# Highlighters
|
# Highlighters
|
||||||
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
||||||
|
@ -77,7 +77,7 @@ add-highlighter shared/nix/code/ regex \bor\b 0:operator
|
||||||
|
|
||||||
# override any operators matched before
|
# override any operators matched before
|
||||||
# path:
|
# path:
|
||||||
add-highlighter shared/nix/code/ regex '\s(\.?\.?/[-A-Za-z0-9/_+.]+)[;?]?' 1:meta
|
add-highlighter shared/nix/code/ regex '\s\(*(\.?\.?/[-A-Za-z0-9/_+.]+)[;?]?' 1:meta
|
||||||
# imported path:
|
# imported path:
|
||||||
add-highlighter shared/nix/code/ regex <[-A-Za-z0-9/_+.]+> 0:meta
|
add-highlighter shared/nix/code/ regex <[-A-Za-z0-9/_+.]+> 0:meta
|
||||||
# RFC 2396 URIs can be used without quoting. Strangely, "string" ends URL but ''indented'' one doesn't
|
# RFC 2396 URIs can be used without quoting. Strangely, "string" ends URL but ''indented'' one doesn't
|
||||||
|
@ -112,4 +112,4 @@ define-command -hidden nix-indent-on-new-line %<
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
|
|
||||||
)
|
§
|
||||||
|
|
Loading…
Reference in New Issue
Block a user