Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
37746fdc
Commit
37746fdc
authored
Jul 08, 2018
by
eckhart
Browse files
- ineptus weitergebaut...
parent
9ecfd232
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/preprocess.py
View file @
37746fdc
...
...
@@ -195,7 +195,7 @@ def tokenized_to_original_mapping(tokenized_source: str) -> SourceMap:
offsets
.
extend
([
o
+
1
,
o
])
i
=
tokenized_source
.
find
(
BEGIN_TOKEN
,
e
+
1
)
if
e
+
1
<
len
(
tokenized_source
):
positions
.
append
(
len
(
tokenized_source
))
positions
.
append
(
len
(
tokenized_source
)
+
1
)
offsets
.
append
(
offsets
[
-
1
])
# post conditions
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment