UltiSnips/test/constant.py

25 lines
475 B
Python
Raw Normal View History

import sys
# Some constants for better reading
BS = '\x7f'
ESC = '\x1b'
ARR_L = '\x1bOD'
ARR_R = '\x1bOC'
ARR_U = '\x1bOA'
ARR_D = '\x1bOB'
# multi-key sequences generating a single key press
SEQUENCES = [ARR_L, ARR_R, ARR_U, ARR_D]
# Defined Constants
2015-01-20 15:26:03 -05:00
JF = '?' # Jump forwards
JB = '+' # Jump backwards
LS = '@' # List snippets
EX = '\t' # EXPAND
EA = '#' # Expand anonymous
COMPL_KW = chr(24) + chr(14)
COMPL_ACCEPT = chr(25)
2015-01-20 15:26:03 -05:00
PYTHON3 = sys.version_info >= (3, 0)