aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-11-21 08:03:20 +0100
committerTristan Gingold <tgingold@free.fr>2022-11-21 08:03:20 +0100
commit0af513e7b59a01f456f6f76369cedf67d8ffc5cf (patch)
tree7a7fa841c07320f027f2b3e6e788cfeff4d5a4da /pyGHDL
parentc1dc505cbe93ebaade1547b2e4180074bdf42a25 (diff)
downloadghdl-0af513e7b59a01f456f6f76369cedf67d8ffc5cf.tar.gz
ghdl-0af513e7b59a01f456f6f76369cedf67d8ffc5cf.tar.bz2
ghdl-0af513e7b59a01f456f6f76369cedf67d8ffc5cf.zip
vhdl-parse: handle inside comments
Diffstat (limited to 'pyGHDL')
-rw-r--r--pyGHDL/libghdl/file_comments.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyGHDL/libghdl/file_comments.py b/pyGHDL/libghdl/file_comments.py
index 1a942d008..a1ca11384 100644
--- a/pyGHDL/libghdl/file_comments.py
+++ b/pyGHDL/libghdl/file_comments.py
@@ -83,7 +83,7 @@ def Get_Comment(File: SourceFileEntry, Idx: Comment_Index) -> str:
buf = files_map.Get_File_Buffer(File)
s = Get_Comment_Start(File, Idx);
l = Get_Comment_Last(File, Idx);
- return buf[s:l].decode("iso-8859-1")
+ return buf[s:l+1].decode("iso-8859-1")
@export
@BindToLibGHDL("file_comments__get_next_comment")