-
Notifications
You must be signed in to change notification settings - Fork 0
/
pycomplete.elc
61 lines (57 loc) · 5.88 KB
/
pycomplete.elc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
;ELC
;;; Compiled by [email protected] on Thu Sep 16 19:03:26 2010
;;; from file /Users/oceanhug/.emacs.d/pycomplete.el
;;; in Emacs version 22.3.1
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
(< (aref emacs-version (1- (length emacs-version))) ?A)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19.29")))
(error "`pycomplete.el' was compiled for Emacs 19.29 or later"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\300\301!\210\300\302!\210\303\304!\207" [require pymacs python-mode pymacs-load "pycomplete"] 2)
#@50 Regular expression matching a python identifier.
(defconst py-identifier "[A-Za-z_][A-Za-z_0-9]*" (#$ . 708))
#@55 Regular expression matching a dotted_name production.
(defconst py-dotted-name-re (concat py-identifier "\\([.]" py-identifier "\\)*") (#$ . 824))
#@58 Regular expression matching a dotted_as_name production.
(defconst py-dotted-as-name-re (concat py-dotted-name-re "\\(\\s +as\\s +" py-identifier "\\)*") (#$ . 977))
#@59 Regular expression matching a dotted_as_names production.
(defconst py-dotted-as-names-re (concat py-dotted-as-name-re "\\(\\s *,\\s *" py-dotted-as-name-re "\\)*") (#$ . 1149))
#@58 Regular expression matching a import_as_name production.
(defconst py-import-as-name-re (concat py-identifier "\\(\\s +as\\s +" py-identifier "\\)*") (#$ . 1333))
#@59 Regular expression matching a import_as_names production.
(defconst py-import-as-names-re (concat py-import-as-name-re "\\(\\s *,\\s *" py-import-as-name-re "\\)*" "\\s *[,]?") (#$ . 1502))
#@55 Regular expression matching a import_name production.
(defconst py-import-name-re (concat "^\\s *\\<import\\>\\s +" py-dotted-as-names-re) (#$ . 1698))
#@55 Regular expression matching a import_from production.
(defconst py-import-from-re (concat "^\\s *\\<from\\>\\s +" "\\([.]*" py-dotted-name-re "\\|[.]+\\)\\s +" "\\<import\\>\\s +" "\\([*]\\|(\\s *" py-import-as-names-re "[^)]*)" "\\|" py-import-as-names-re "\\)") (#$ . 1856))
#@38 Regular expression matching imports.
(defconst py-imports-re (byte-code "\302\303\304 D\305#\306Q\207" [py-import-name-re py-import-from-re "\\(" mapconcat identity "\\|" "\\)"] 5) (#$ . 2139))
#@64 check if current line is empty (only whitespaces and comments)
(defalias 'blank-linep #[nil "\212\301 \210\302!)\207" [py-blank-or-comment-re beginning-of-line looking-at] 2 (#$ . 2340)])
#@39 check if prev character is blank-type
(defalias 'char-before-blank #[nil "\212\300u\210\301\302!)\207" [-1 looking-at "[\n ]"] 2 (#$ . 2535)])
#@49 show possible completions for current statement
(defalias 'py-complete #[nil "\301l\203 n\204 \302 \204 \303 \204 \304\305 \306 \307 #c\202\"