stollcri / elixir.novaextension

Elixir Language Definition Extension for Panic Nova
MIT License
9 stars 5 forks source link

with support is missing #3

Closed optikfluffel closed 4 years ago

optikfluffel commented 4 years ago

Support for with is missing.

Example:

defp serve(socket) do
  msg =
    with {:ok, data} <- read_line(socket),
         {:ok, command} <- KVServer.Command.parse(data),
         do: KVServer.Command.run(command)

  write_line(socket, msg)
  serve(socket)
end