aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-11-03 08:03:12 +0100
committerTristan Gingold <tgingold@free.fr>2021-11-03 22:10:05 +0100
commitc56db23368ecb4df5eaef3920a46d12150235070 (patch)
tree6d8f7dab0b36ac6f6ea7ea8b54b235babb8078b8 /src/vhdl
parenteb2b7a950937f5f414c4652514e66e31549bc8bd (diff)
downloadghdl-c56db23368ecb4df5eaef3920a46d12150235070.tar.gz
ghdl-c56db23368ecb4df5eaef3920a46d12150235070.tar.bz2
ghdl-c56db23368ecb4df5eaef3920a46d12150235070.zip
vhdl: add tok_inherit. Preliminary work for #1899
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/vhdl-scanner.adb2
-rw-r--r--src/vhdl/vhdl-tokens.adb2
-rw-r--r--src/vhdl/vhdl-tokens.ads1
3 files changed, 5 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-scanner.adb b/src/vhdl/vhdl-scanner.adb
index 9c3d952ab..0527cd131 100644
--- a/src/vhdl/vhdl-scanner.adb
+++ b/src/vhdl/vhdl-scanner.adb
@@ -1323,6 +1323,8 @@ package body Vhdl.Scanner is
Current_Token := Tok_Vprop;
when Name_Vunit =>
Current_Token := Tok_Vunit;
+ when Name_Inherit =>
+ Current_Token := Tok_Inherit;
when others =>
Current_Token := Tok_Identifier;
end case;
diff --git a/src/vhdl/vhdl-tokens.adb b/src/vhdl/vhdl-tokens.adb
index b8838c1db..90ce05bcc 100644
--- a/src/vhdl/vhdl-tokens.adb
+++ b/src/vhdl/vhdl-tokens.adb
@@ -380,6 +380,8 @@ package body Vhdl.Tokens is
return "restrict_guarantee";
when Tok_Sequence =>
return "sequence";
+ when Tok_Inherit =>
+ return "inherit";
when Tok_Vmode =>
return "vmode";
when Tok_Vprop =>
diff --git a/src/vhdl/vhdl-tokens.ads b/src/vhdl/vhdl-tokens.ads
index 5caba9dd9..8812e20e7 100644
--- a/src/vhdl/vhdl-tokens.ads
+++ b/src/vhdl/vhdl-tokens.ads
@@ -253,6 +253,7 @@ package Vhdl.Tokens is
Tok_Restrict,
Tok_Restrict_Guarantee,
Tok_Sequence,
+ Tok_Inherit,
Tok_Vmode,
Tok_Vprop,
Tok_Vunit,