summaryrefslogtreecommitdiff
path: root/src/vhdl/parse.adb
diff options
context:
space:
mode:
authorTristan Gingold2015-12-22 09:10:29 +0100
committerTristan Gingold2015-12-22 09:10:29 +0100
commitf846541d8f10a9098b70716c79f4e262abad71ff (patch)
tree3662b151ee58666e3b8d7a86dc8c1b6558dd52fd /src/vhdl/parse.adb
parent23f5d6177cdca86aaf69eb58e2d25971db194059 (diff)
downloadghdl-f846541d8f10a9098b70716c79f4e262abad71ff.tar.gz
ghdl-f846541d8f10a9098b70716c79f4e262abad71ff.tar.bz2
ghdl-f846541d8f10a9098b70716c79f4e262abad71ff.zip
Scanner: fix use of latin-1 8 bit characters.
Diffstat (limited to 'src/vhdl/parse.adb')
-rw-r--r--src/vhdl/parse.adb7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vhdl/parse.adb b/src/vhdl/parse.adb
index b3a8cd9..cb8537e 100644
--- a/src/vhdl/parse.adb
+++ b/src/vhdl/parse.adb
@@ -209,7 +209,7 @@ package body Parse is
-- precond : next token
-- postcond: next token.
--
- -- [§ 4.3.2 ]
+ -- [ LRM93 4.3.2 ]
-- mode ::= IN | OUT | INOUT | BUFFER | LINKAGE
--
-- If there is no mode, DEFAULT is returned.
@@ -238,9 +238,8 @@ package body Parse is
Scan;
return Iir_Buffer_Mode;
when others =>
- Error_Msg_Parse
- ("mode is 'in', 'out', 'inout', 'buffer' or 'linkage'");
- return Iir_In_Mode;
+ -- Cannot happen.
+ raise Internal_Error;
end case;
end Parse_Mode;