rc nix: handle dashes embedded in identifiers
Some experimentation at the REPL showed that any number of leading dashes are operators, while embedded dashes are identifier characters. Closes #3803.
This commit is contained in:
parent
b42885ef71
commit
c1f67972e4
|
@ -63,7 +63,7 @@ add-highlighter shared/nix/code/ regex \b(rec)\b\s*\{ 1:keyword
|
|||
add-highlighter shared/nix/code/ regex '[^.]\s*\b(builtins|inherit|baseNameOf|derivation|dirOf|fetchTarball|import|isNull|map|removeAttrs|throw|toString)\b\s*[^=]' 1:builtin
|
||||
|
||||
add-highlighter shared/nix/code/ regex '\b\s*(\.)\s*\b' 1:operator
|
||||
add-highlighter shared/nix/code/ regex '-' 0:operator
|
||||
add-highlighter shared/nix/code/ regex '[^-a-zA-Z0-9_](-+)' 1:operator
|
||||
add-highlighter shared/nix/code/ regex '\?' 0:operator
|
||||
add-highlighter shared/nix/code/ regex '\+\+=?' 0:operator
|
||||
add-highlighter shared/nix/code/ regex '(\*|/|\+)' 0:operator
|
||||
|
|
Loading…
Reference in New Issue
Block a user