Skip to content

Commit 16dea6e

Browse files
liam923goldfirere
andauthored
Add syntax hovers for oxcaml (#168)
* Add syntax hovers for oxcaml * Add doc for jkinds * Remove specialise annotations * Add zero_alloc descriptions * Add most inline annoation descs * Do rest of inline annotations * Add more * Add noalloc desc * Add modes, modalitys, and jkinds * Fill in remaining todos * Add tests * Apply suggestion from @goldfirere Co-authored-by: Richard Eisenberg <[email protected]> * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Rephrase comonadic mode descs * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update mode descriptions * of -> with * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * zero-alloc desc changes * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update src/analysis/syntax_doc.ml Co-authored-by: Richard Eisenberg <[email protected]> * Update exclave desc * Update tests/test-dirs/syntax-document/language-extensions.t/run.t Co-authored-by: Richard Eisenberg <[email protected]> * Add comment --------- Co-authored-by: Richard Eisenberg <[email protected]>
1 parent c90da2e commit 16dea6e

File tree

10 files changed

+1662
-133
lines changed

10 files changed

+1662
-133
lines changed

src/analysis/completion.ml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ let classify_node = function
133133
| Open_declaration _ -> `Module
134134
| Include_declaration _ -> `Module
135135
| Include_description _ -> `Module
136+
| Mode _ | Modality _ ->
137+
(* CR-someday: Have proper completion for modes and modalities *)
138+
`Expression
139+
| Jkind_annotation _ ->
140+
(* CR-someday: Have proper completion for jkinds *)
141+
`Type
142+
| Attribute _ ->
143+
(* CR-someday: Have proper completion for attributes *)
144+
`Expression
136145

137146
open Query_protocol.Compl
138147

0 commit comments

Comments
 (0)