diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-01-09 01:10:22 +0100 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-01-10 10:14:16 +0100 |
commit | 936a25178d085c7dbc651ea8889718eb302c012b (patch) | |
tree | 20788774623fb7e6c626119bc063f926b776e6a4 /pyGHDL/libghdl/vhdl/scanner.py | |
parent | b2a98ec0674c031688ebf479664db6fd4975b428 (diff) | |
download | ghdl-936a25178d085c7dbc651ea8889718eb302c012b.tar.gz ghdl-936a25178d085c7dbc651ea8889718eb302c012b.tar.bz2 ghdl-936a25178d085c7dbc651ea8889718eb302c012b.zip |
Fixes for Python files.
Diffstat (limited to 'pyGHDL/libghdl/vhdl/scanner.py')
-rw-r--r-- | pyGHDL/libghdl/vhdl/scanner.py | 9 |
1 files changed, 4 insertions, 5 deletions
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() |