Skip to content

Commit

Permalink
Fixed the ... error
Browse files Browse the repository at this point in the history
  • Loading branch information
eitherys committed Jun 17, 2020
1 parent 2b11da6 commit 598520e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ksp_compiler3/ksp_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ def replace_func(match):

# remove comments and multi-line indicators ('...\n')
s = comment_re.sub('', s)
s = line_continuation_re.sub('', s)

lines = s.split('\n')

Expand All @@ -302,6 +301,8 @@ def replace_func(match):
lines[i] = lines[i].replace(m.group(1), "")
s = '\n'.join(lines)

s = line_continuation_re.sub('', s)

# substitute strings with place-holders
s = string_re.sub(replace_func, s)

Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"1.9.7": "messages/1.9.7.txt",
"1.9.8": "messages/1.9.8.txt",
"1.9.9": "messages/1.9.9.txt",
"1.9.10": "messages/1.9.10.txt"
"1.9.10": "messages/1.9.10.txt",
"1.9.11": "messages/1.9.11.txt"
}
20 changes: 20 additions & 0 deletions messages/1.9.11.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Version 1.9.11
---------------------------------------------------

This is a fix for new comment bug that "..." contained inside of the // would stop compiling correctly.

Please remember to report all issues and problems at: https://github.com/nojanath/SublimeKSP/issues

---------------------------------------------------

If you would like to roll back a version of SublimeKSP for time critical work prevented by a new bug:

First, remove SublimeKSP from Sublime Package Control:
1. Use the shortcut `Ctrl + Shift + P` on Windows/Linux or `Cmd + Shift + P` on Mac.
2. Type "Remove Package" and select it, then select the "KSP (Kontakt Script Processor)" entry.

Next, download the version you'd like here: https://github.com/nojanath/SublimeKSP/releases
With your SublimeKSP package downloaded, you can install it as a user package in Sublime following these instructions:
1. Open the Preferences menu in Sublime and click Browse Packages. A folder will open up.
2. Extract the `SublimeKSP` folder out of the zip file and place it into this folder.
3. Restart Sublime completely. Make sure it is not running in your OS task manager (or, restart the computer to be thorough!)

0 comments on commit 598520e

Please sign in to comment.