mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Add reference documentation on hover
For most constructs and keywords, show the relevant section of the reference documentation on hover.
This commit is contained in:
parent
b107a85947
commit
e19975e1f8
28 changed files with 326 additions and 21 deletions
|
@ -94,6 +94,10 @@ class ExtScaleMark(AstNode):
|
|||
did_you_mean=(self.position, positions.keys()),
|
||||
)
|
||||
|
||||
@docs("mark")
|
||||
def ref_docs(self):
|
||||
return get_docs_section("Syntax ExtScaleMarks")
|
||||
|
||||
|
||||
class ExtScaleMarks(AstNode):
|
||||
grammar = [
|
||||
|
@ -123,6 +127,10 @@ class ExtScaleMarks(AstNode):
|
|||
def unique_in_parent(self):
|
||||
self.validate_unique_in_parent("Duplicate 'marks' block")
|
||||
|
||||
@docs("marks")
|
||||
def ref_docs(self):
|
||||
return get_docs_section("Syntax ExtScaleMarks")
|
||||
|
||||
|
||||
@completer(
|
||||
applies_in=[ObjectContent],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue