Skip to content

Commit

Permalink
Merge pull request #77 from deathaxe/fix-st4153
Browse files Browse the repository at this point in the history
Fix compatibility with ST4153+
  • Loading branch information
ehuss authored Aug 11, 2023
2 parents 63f90b2 + 32ed65f commit 98c8f8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wrap_plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def __init__(self, view, min, max):
def _is_c_comment(self, scope_name):
if 'comment' not in scope_name and 'block' not in scope_name:
return False
for start, end, disable_indent in self.bc:
if start == '/*' and end == '*/':
for c in self.bc:
if c[0] == '/*' and c[1] == '*/':
break
else:
return False
Expand All @@ -97,8 +97,8 @@ def set_comments(self, lc, bc, pt):
# Determine if pt is inside a "line comment".
# Only whitespace is allowed to the left of the line comment.
# XXX: What is disable_indent?
for start, disable_indent in lc:
start = start.rstrip()
for c in lc:
start = c[0].rstrip()
if line_strp.startswith(start):
ldiff = len(line) - len(line.lstrip())
p = line[:ldiff + len(start)]
Expand Down

0 comments on commit 98c8f8a

Please sign in to comment.