From 0af513e7b59a01f456f6f76369cedf67d8ffc5cf Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 21 Nov 2022 08:03:20 +0100 Subject: vhdl-parse: handle inside comments --- pyGHDL/libghdl/file_comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyGHDL') 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") -- cgit v1.2.3