aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-tokens.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-01-09 08:38:26 +0100
committerTristan Gingold <tgingold@free.fr>2021-01-09 09:17:50 +0100
commitd2990978f76425b736e01c936e878048e4801f65 (patch)
tree7cfeab2180fd45b026e08e4fa896dbc0077cece9 /src/vhdl/vhdl-tokens.adb
parentadcfcc7f7703e9c26018f3fb7353a19797d263c8 (diff)
downloadghdl-d2990978f76425b736e01c936e878048e4801f65.tar.gz
ghdl-d2990978f76425b736e01c936e878048e4801f65.tar.bz2
ghdl-d2990978f76425b736e01c936e878048e4801f65.zip
vhdl: rework formatter engine, add 'ghdl fmt' command
Diffstat (limited to 'src/vhdl/vhdl-tokens.adb')
-rw-r--r--src/vhdl/vhdl-tokens.adb7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-tokens.adb b/src/vhdl/vhdl-tokens.adb
index eb98894f3..efb31de1a 100644
--- a/src/vhdl/vhdl-tokens.adb
+++ b/src/vhdl/vhdl-tokens.adb
@@ -52,13 +52,18 @@ package body Vhdl.Tokens is
when Tok_Dot =>
return ".";
+ when Tok_Block_Comment_Start =>
+ return "/*";
+ when Tok_Block_Comment_End =>
+ return "*/";
+
when Tok_Eof =>
return "<EOF>";
when Tok_Newline =>
return "<newline>";
when Tok_Line_Comment =>
return "<line-comment>";
- when Tok_Block_Comment =>
+ when Tok_Block_Comment_Text =>
return "<block-comment>";
when Tok_Character =>
return "<character>";