]>
git.madduck.net Git - etc/vim.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1909d8c )
Fixes #99
Fixes #112
+### 18.4a2 (unreleased)
+
+* fixed parsing of unaligned standalone comments (#99, #112)
+
### 18.4a1
* added `--quiet` (#78)
### 18.4a1
* added `--quiet` (#78)
self.logger.debug("Stop.")
break
prefix = ""
self.logger.debug("Stop.")
break
prefix = ""
+ if type == token.INDENT:
+ if _prefix.startswith(value):
+ # Don't double-indent. Since we're delaying the prefix that
+ # would normally belong to INDENT, we need to put the value
+ # at the end versus at the beginning.
+ _prefix = _prefix[len(value):] + value
if type in {token.INDENT, token.DEDENT}:
prefix = _prefix
lineno, column = end
if type in {token.INDENT, token.DEDENT}:
prefix = _prefix
lineno, column = end
yield (NL, line[pos:], (lnum, pos), (lnum, len(line)), line)
continue
yield (NL, line[pos:], (lnum, pos), (lnum, len(line)), line)
continue
- if column > indents[-1]: # count indents
- indents.append(column)
- yield (INDENT, line[:pos], (lnum, 0), (lnum, pos), line)
-
if line[pos] == '#': # skip comments
comment_token = line[pos:].rstrip('\r\n')
nl_pos = pos + len(comment_token)
if line[pos] == '#': # skip comments
comment_token = line[pos:].rstrip('\r\n')
nl_pos = pos + len(comment_token)
(lnum, nl_pos), (lnum, len(line)), line)
continue
(lnum, nl_pos), (lnum, len(line)), line)
continue
+ if column > indents[-1]: # count indents
+ indents.append(column)
+ yield (INDENT, line[:pos], (lnum, 0), (lnum, pos), line)
+
while column < indents[-1]: # count dedents
if column not in indents:
raise IndentationError(
while column < indents[-1]: # count dedents
if column not in indents:
raise IndentationError(
+if 'PYTHON' in os.environ:
+ add_compiler(compiler_from_env())
+else:
+ # for compiler in compilers.values():
+ # add_compiler(compiler)
+ add_compiler(compilers[(7.0, 32)])
+ # add_compiler(compilers[(7.1, 64)])
+
# Comment before function.
def inline_comments_in_brackets_ruin_everything():
if typedargslist:
# Comment before function.
def inline_comments_in_brackets_ruin_everything():
if typedargslist:
# and round and round we go
# and round and round we go
# and round and round we go
# and round and round we go
return Node(
syms.simple_stmt,
[
return Node(
syms.simple_stmt,
[
+if "PYTHON" in os.environ:
+ add_compiler(compiler_from_env())
+else:
+ # for compiler in compilers.values():
+ # add_compiler(compiler)
+ add_compiler(compilers[(7.0, 32)])
+# add_compiler(compilers[(7.1, 64)])
+
# Comment before function.
# Comment before function.