Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a5031e6

Browse files
committedJul 11, 2022
fix issue #193: ensure there's no space between FN, USR and any following keyword
1 parent 1e33ce7 commit a5031e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎pcbasic/basic/converter/lister.py

+4
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ def _detokenise_keyword(self, ins, output):
113113
if (
114114
output and int2byte(output[-1]) in ALPHANUMERIC
115115
and s not in tk.OPERATOR
116+
# we need to check again for FN and USR, but not SPC( and TAB(
117+
# because we check the converted output, not the previous token
118+
and not (len(output) >= 2 and bytes(output[-2:]) == b'FN')
119+
and not (len(output) >= 3 and bytes(output[-3:]) == b'USR')
116120
):
117121
output += b' '
118122
output += keyword

0 commit comments

Comments
 (0)
Failed to load comments.