chore: copyright
This commit is contained in:
parent
23feb04d60
commit
4356017035
16 changed files with 96 additions and 8 deletions
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
prelude
|
||||
import Init.Data.ByteArray.Basic
|
||||
import Init.Data.List.Control
|
||||
|
|
@ -36,12 +42,10 @@ private partial def utf8ToStringAux : Nat → ByteArray → Option (List Char)
|
|||
-- parse the rest of the bytes
|
||||
bytes ← (List.range j).mapM (fun k => convertUtf8Byte utf8 (i+k+1));
|
||||
some (concatUtf8Bytes (msb :: bytes), j+1));
|
||||
if h : isValidChar charVal then do
|
||||
let ch : Char := ⟨charVal, h⟩;
|
||||
tail ← utf8ToStringAux (i+nextCharOffset) utf8;
|
||||
some (ch :: tail)
|
||||
else
|
||||
failure
|
||||
⟨h⟩ ← assert (isValidChar charVal);
|
||||
let ch : Char := ⟨charVal, h⟩;
|
||||
tail ← utf8ToStringAux (i+nextCharOffset) utf8;
|
||||
some (ch :: tail)
|
||||
else
|
||||
some []
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga
|
||||
-/
|
||||
import Init.System.IO
|
||||
import Lean.Data.Json.Parser
|
||||
import Lean.Data.Json.Printer
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Init.Control
|
||||
import Init.System.IO
|
||||
import Std.Data.RBTree
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/-
|
||||
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Gabriel Ebner, Marc Huisinga
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Lean.Data.Lsp.Basic
|
||||
import Lean.Data.Lsp.Capabilities
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Lean.Data.Json
|
||||
|
||||
/-! Defines most of the 'Basic Structures' in the LSP specification
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Lean.Data.JsonRpc
|
||||
import Lean.Data.Lsp.TextSync
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Init.System.IO
|
||||
import Lean.Data.JsonRpc
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Lean.Data.Json
|
||||
import Lean.Data.Lsp.Basic
|
||||
import Lean.Data.Lsp.Utf16
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Wojciech Nawrocki
|
||||
-/
|
||||
import Lean.Data.Json
|
||||
import Lean.Data.Lsp.Basic
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Lean.Data.Lsp.Capabilities
|
||||
import Lean.Data.Lsp.Workspace
|
||||
import Lean.Data.Json
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Lean.Data.Json
|
||||
import Lean.Data.Lsp.Basic
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Init.Data.String
|
||||
import Init.Data.Array
|
||||
import Lean.Data.Lsp.Basic
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Wojciech Nawrocki
|
||||
-/
|
||||
import Lean.Data.Lsp.Basic
|
||||
import Lean.Data.Json
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Marc Huisinga. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Init.System.IO
|
||||
import Std.Data.RBMap
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Wojciech Nawrocki
|
||||
-/
|
||||
import Init.System.IO
|
||||
import Lean.Server
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/-
|
||||
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Authors: Wojciech Nawrocki
|
||||
-/
|
||||
import Init.System.IO
|
||||
|
||||
import Lean.Elab.Import
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue