Allow pattern-matching on bytearrays
- Doesn't allow pattern-matching on G1/G2 elements and strings,
because the use cases for those is unclear and it adds complexity to
the feature.
- We still _parse_ patterns on G1/G2 elements and strings, but emit an
error in those cases.
- The syntax is the same as for bytearray literals (i.e. supports hex,
utf-8 strings or plain arrays of bytes).
This commit is contained in:
@@ -34,7 +34,7 @@ pub fn start() -> Result<(), Error> {
|
||||
let (connection, io_threads) = Connection::stdio();
|
||||
|
||||
// Run the server and wait for the two threads to end (typically by trigger LSP Exit event).
|
||||
let server_capabilities = serde_json::to_value(&capabilities())?;
|
||||
let server_capabilities = serde_json::to_value(capabilities())?;
|
||||
|
||||
let initialization_params = connection.initialize(server_capabilities)?;
|
||||
let initialize_params = serde_json::from_value(initialization_params)?;
|
||||
|
||||
Reference in New Issue
Block a user