aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-07-28 22:29:04 +0200
committerTristan Gingold <tgingold@free.fr>2020-07-28 22:29:58 +0200
commit2fc0debb824e4b5728256543253b0a4949ad522b (patch)
tree1f34a4c46fd5e04e5dfc63e1bee0944dd5cf1787 /python
parent4bfaa10014d923f1e27aca563362f9f389e9e4a2 (diff)
downloadghdl-2fc0debb824e4b5728256543253b0a4949ad522b.tar.gz
ghdl-2fc0debb824e4b5728256543253b0a4949ad522b.tar.bz2
ghdl-2fc0debb824e4b5728256543253b0a4949ad522b.zip
vhdl_langserver/symbols.py: handle PSL directives and declarations.
Fix #1409
Diffstat (limited to 'python')
-rw-r--r--python/vhdl_langserver/symbols.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/vhdl_langserver/symbols.py b/python/vhdl_langserver/symbols.py
index b550404f3..b39827bed 100644
--- a/python/vhdl_langserver/symbols.py
+++ b/python/vhdl_langserver/symbols.py
@@ -57,6 +57,13 @@ SYMBOLS_MAP = {
nodes.Iir_Kind.Case_Generate_Statement: {'kind': lsp.SymbolKind.Method},
nodes.Iir_Kind.Sensitized_Process_Statement: {'kind': lsp.SymbolKind.Method},
nodes.Iir_Kind.Process_Statement: {'kind': lsp.SymbolKind.Method},
+ nodes.Iir_Kind.Psl_Assert_Directive: {'kind': lsp.SymbolKind.Method},
+ nodes.Iir_Kind.Psl_Assume_Directive: {'kind': lsp.SymbolKind.Method},
+ nodes.Iir_Kind.Psl_Cover_Directive: {'kind': lsp.SymbolKind.Method},
+ nodes.Iir_Kind.Psl_Restrict_Directive: {'kind': lsp.SymbolKind.Method},
+ nodes.Iir_Kind.Psl_Endpoint_Declaration: {'kind': lsp.SymbolKind.Variable},
+ nodes.Iir_Kind.Psl_Declaration: {'kind': lsp.SymbolKind.Variable},
+ nodes.Iir_Kind.Psl_Assert_Directive: {'kind': lsp.SymbolKind.Method},
nodes.Iir_Kind.Configuration_Specification: {'kind': None},
}