1
0
forked from VimPlug/jedi

passing hex/oct/bin tests for #327

This commit is contained in:
Dave Halter
2014-04-07 14:12:12 +02:00
parent d15203162a
commit b48d0bf622
2 changed files with 10 additions and 10 deletions

View File

@@ -136,11 +136,10 @@ class Script(object):
last word part. To ignore certain strange patterns with dots, just
use regex.
"""
dots = re.search('^\.|([\d.]+)\.$', path)
dots = re.search('^\.|((?:0[xbo])?[\d.]+)\.$', path)
if dots:
literal = dots.group(1)
print(literal)
if re.search('\d\.|\.{3}', literal or ''):
if re.match('0[xbo][\da-fA-F]+$|\d\.$|\.{3}$', literal or ''):
return True
return False
return True