aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/vhdl/scanner.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/libghdl/vhdl/scanner.py')
-rw-r--r--pyGHDL/libghdl/vhdl/scanner.py9
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()