@kurrawongai/codemirror-lang-sparql12 0.5.0 → 0.7.0
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.
- package/README.md +3 -0
- package/dist/complete.d.ts +2 -0
- package/dist/index.cjs +201 -187
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +16 -2
- package/dist/index.js +201 -188
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/complete.ts +6 -0
- package/src/index.ts +20 -3
- package/src/sparql.grammar +19 -6
package/README.md
CHANGED
|
@@ -31,6 +31,9 @@ parse errors. It accepts some invalid syntax and does not check query
|
|
|
31
31
|
semantics, such as whether a projected variable is grouped. Use a separate validator before
|
|
32
32
|
executing a query when validation is required.
|
|
33
33
|
|
|
34
|
+
`LATERAL` ([SEP-0006](https://github.com/w3c/sparql-dev/blob/main/SEP/SEP-0006/sep-0006.md))
|
|
35
|
+
is not in the SPARQL 1.2 Working Draft, so it is opt-in: `sparql({ lateral: true })`.
|
|
36
|
+
|
|
34
37
|
## Documentation
|
|
35
38
|
|
|
36
39
|
- [Usage and completion](https://github.com/kurrawong/codemirror-lang-rdf/blob/main/docs/usage.md)
|
package/dist/complete.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export declare function knownPrefixes(state: EditorState, options?: CompletionOp
|
|
|
35
35
|
export interface CompletionSourceOptions extends CompletionOptions {
|
|
36
36
|
/** Which keyword set to offer. SRL adds its own and drops the update ones. */
|
|
37
37
|
dialect?: 'sparql' | 'srl';
|
|
38
|
+
/** Offer `LATERAL` (SEP-0006) among the SPARQL keywords. Ignored for SRL, which has no LATERAL. */
|
|
39
|
+
lateral?: boolean;
|
|
38
40
|
}
|
|
39
41
|
/**
|
|
40
42
|
* Completion for SPARQL and SRL.
|