diff --git a/python/ycm/test_utils.py b/python/ycm/test_utils.py index ea341684..4cee2fe4 100644 --- a/python/ycm/test_utils.py +++ b/python/ycm/test_utils.py @@ -33,9 +33,12 @@ import functools from ycmd.utils import ToUnicode -BUFNR_REGEX = re.compile( r"^bufnr\('(.+)', ([0-9]+)\)$" ) -BUFWINNR_REGEX = re.compile( r"^bufwinnr\(([0-9]+)\)$" ) -BWIPEOUT_REGEX = re.compile( r"^(?:silent! )bwipeout!? ([0-9]+)$" ) +BUFNR_REGEX = re.compile( '^bufnr\(\'(?P.+)\', ([01])\)$' ) +BUFWINNR_REGEX = re.compile( '^bufwinnr\((?P[0-9]+)\)$' ) +BWIPEOUT_REGEX = re.compile( + '^(?:silent! )bwipeout!? (?P[0-9]+)$' ) +GETBUFVAR_REGEX = re.compile( + '^getbufvar\((?P[0-9]+), "&(?P