@exercism/codemirror-lang-clojure 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ import {LRParser} from "@lezer/lr"
2
+ import {NodeProp} from "@lezer/common"
3
+ import {LRLanguage, LanguageSupport} from "@codemirror/language"
4
+ import {CompletionContext, CompletionResult} from "@codemirror/autocomplete"
5
+
6
+ export const parser: LRParser
7
+
8
+ export const props: {
9
+ coll: NodeProp<boolean>
10
+ prefixColl: NodeProp<boolean>
11
+ prefixEdge: NodeProp<boolean>
12
+ sameEdge: NodeProp<boolean>
13
+ prefixContainer: NodeProp<boolean>
14
+ }
15
+
16
+ /// The Clojure language, with highlighting, indentation and folding.
17
+ export const clojureLanguage: LRLanguage
18
+
19
+ /// Clojure language support, with completion.
20
+ export function clojure(): LanguageSupport
21
+
22
+ /// Completes the names defined in the file, with local names in scope only.
23
+ export function localCompletionSource(context: CompletionContext): CompletionResult | null
24
+
25
+ /// Completes special forms, clojure.core names, snippets, and clojure.string
26
+ /// and clojure.set functions after their alias.
27
+ export function builtinCompletionSource(context: CompletionContext): CompletionResult | null
28
+
29
+ export const builtins: {
30
+ specialForms: readonly string[]
31
+ coreMacros: readonly string[]
32
+ coreFunctions: readonly string[]
33
+ coreVars: readonly string[]
34
+ stringFunctions: readonly string[]
35
+ setFunctions: readonly string[]
36
+ }