Skip to content

Commit

Permalink
Some Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesShaker committed Nov 23, 2018
1 parent a397804 commit 4ffb1d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config/HOL/HOL.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ contexts:
scope: constant.language.hol

# comparison operators
- match: '<\=|>\=|<|>|\!\=|\=|:=|>>|>-'
- match: '<\=|>\=|<|>|\!\=|\=|:='
scope: keyword.operator.assignment.hol

# arithmetic operators
- match: '\*|\+|-|\/|~|\^|div|mod|::|@'
- match: '\*|\+|-|\/|~|\^|div|mod|::|@|>>|>-|THEN|THEN1|THENL|>\||\\'
scope: keyword.operator.arithmetic.hol

# logical operators
Expand Down
6 changes: 2 additions & 4 deletions repls/sublimehol_repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ def __init__(self, encoding, cmd=None, **kwds):

def write(self, command):
#strip the command of terms and strings and comments
stripped_command = re.sub('“([\w\s\S]*?)”','',command)
stripped_command = re.sub('‘([\w\s\S]*?)’','',command)
stripped_command = re.sub('\`\`([\w\s\S]*?)\`\`','',stripped_command)
stripped_command = re.sub('\`([\w\s\S]*?)\`','',stripped_command)
stripped_command = re.sub('\"([\w\s\S]*?)\"','',stripped_command)
stripped_command = re.sub('\“([\w\s\S]*?)\”','',stripped_command)
stripped_command = re.sub('\‘([\w\s\S]*?)\’','',stripped_command)
stripped_command = re.sub('\"([\w\s\S]*?)\"','',stripped_command)
stripped_command = re.sub('\(\*([\w\s\S]*?)\*\)','',stripped_command)

#get open dependencies
Expand Down Expand Up @@ -49,5 +48,4 @@ def send_signal(self, sig):
if self.is_alive():
#Need to send signal to children because HOL runs everything
#in build heap
print("Trying to get group of " + str(self.popen.pid) + " killed with signal " + str(sig))
os.killpg(os.getpgid(self.popen.pid), sig)

0 comments on commit 4ffb1d7

Please sign in to comment.