File: constant.py

package info (click to toggle)
vim-ultisnips 3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,924 kB
  • sloc: python: 8,353; sh: 64; makefile: 38
file content (24 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
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)

PYTHON3 = sys.version_info >= (3, 0)