Permalink
Browse files

Remove 1.12 stuff

  • Loading branch information...
42iscool42 committed Jul 22, 2018
1 parent 14396e3 commit 86a87944932bfa5b3eb71fe3112318b043317f23
Showing with 2 additions and 6,038 deletions.
  1. +2 −14 MccHighlighting.py
  2. +0 −660 Minecraft Command Code.YAML-tmLanguage
  3. +0 −2,458 Minecraft Command Code.tmLanguage
  4. +0 −649 Minecraft Function.YAML-tmLanguage
  5. +0 −2,213 Minecraft Function.tmLanguage
  6. +0 −44 README.md
View
@@ -20,26 +20,14 @@ def on_activated(self, view):
def run(self, view):
file_name = view.file_name()
if file_name == None or not (file_name.endswith(".mcc13") or file_name.endswith(".mcfunction")):
if file_name == None or not file_name.endswith(".mcfunction"):
return
full_region = sublime.Region(0, view.size())
file_lines = view.lines(full_region)
parser = Parser(view)
if file_name.endswith(".mcfunction"):
first_line_string = view.substr(file_lines[0])
if not re.match("(?i)[ \t]*#[ \t]*use[ \t]*1\.13[ \t]*parsing[ \t]*$", first_line_string):
parser.add_regions()
if os.path.exists(sublime.installed_packages_path() + "/Marshal Command Code.sublime-package"):
view.settings().set("syntax", "Packages/Marshal Command Code/Minecraft Function.tmLanguage")
elif os.path.exists(sublime.installed_packages_path() + "/MinecraftCommandCode.sublime-package"):
view.settings().set("syntax", "Packages/MinecraftCommandCode/Minecraft Function.tmLanguage")
print("MCC not found")
return
else:
view.settings().set("syntax", "Packages/Text/Plain text.tmLanguage")
#view.settings().set("syntax", "Packages/Text/Plain text.tmLanguage")
for line in file_lines:
if not line.empty():
Oops, something went wrong.

0 comments on commit 86a8794

Please sign in to comment.