Fix regex for nix paths

This commit is contained in:
notquiteamonad 2021-08-23 11:06:14 +01:00
parent e454b393cf
commit b9c02d48ab
No known key found for this signature in database
GPG Key ID: 076D38CFD5CD2834

View File

@ -79,7 +79,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/_+.]*/[-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