~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to clint.py

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20160418214219-6lf1w0zadujghas7
Tags: upstream-0.1.3
ImportĀ upstreamĀ versionĀ 0.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
2552
2552
 
2553
2553
    # If should always have a brace
2554
2554
    for blockstart in ('if', 'while', 'for'):
2555
 
        if Match(r'\s*{0}[^{{]*$'.format(blockstart), line):
 
2555
        if Match(r'\s*{0}(?!\w)[^{{]*$'.format(blockstart), line):
2556
2556
            pos = line.find(blockstart)
2557
2557
            pos = line.find('(', pos)
2558
2558
            if pos > 0: