diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-07-28 22:29:04 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-07-28 22:29:58 +0200 |
commit | 2fc0debb824e4b5728256543253b0a4949ad522b (patch) | |
tree | 1f34a4c46fd5e04e5dfc63e1bee0944dd5cf1787 | |
parent | 4bfaa10014d923f1e27aca563362f9f389e9e4a2 (diff) | |
download | ghdl-2fc0debb824e4b5728256543253b0a4949ad522b.tar.gz ghdl-2fc0debb824e4b5728256543253b0a4949ad522b.tar.bz2 ghdl-2fc0debb824e4b5728256543253b0a4949ad522b.zip |
vhdl_langserver/symbols.py: handle PSL directives and declarations.
Fix #1409
-rw-r--r-- | python/vhdl_langserver/symbols.py | 7 |
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}, } |