From 936a25178d085c7dbc651ea8889718eb302c012b Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sat, 9 Jan 2021 01:10:22 +0100 Subject: Fixes for Python files. --- pyGHDL/libghdl/vhdl/scanner.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'pyGHDL/libghdl/vhdl/scanner.py') diff --git a/pyGHDL/libghdl/vhdl/scanner.py b/pyGHDL/libghdl/vhdl/scanner.py index 1215c97a2..24b41d7bf 100644 --- a/pyGHDL/libghdl/vhdl/scanner.py +++ b/pyGHDL/libghdl/vhdl/scanner.py @@ -76,14 +76,13 @@ def Scan() -> None: @export def Get_Current_Line() -> int: """ - Get the current token's line. + Get the current location, or the location of the current token. + + Since a token cannot spread over lines, file and line of the current token are + the same as those of the current position. The offset is the offset in the current line. :return: Current token's line. """ - """ -- Get the current location, or the location of the current token. - -- Since a token cannot spread over lines, file and line of the current - -- token are the same as those of the current position. - -- The offset is the offset in the current line.""" return libghdl.vhdl__scanner__get_current_line() -- cgit v1.2.3