-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrust-mode.elc
More file actions
78 lines (71 loc) · 12.8 KB
/
rust-mode.elc
File metadata and controls
78 lines (71 loc) · 12.8 KB
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
61
62
63
64
65
66
67
;ELC
;;; Compiled
;;; in Emacs version 24.3.50.1
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\300\301!\210\300\302!\207" [require cm-mode cc-mode] 2)
(defalias 'rust-electric-brace #[(arg) "\302\303!!\210 \205 \304`\305\"\306\235?\205 \307 \207" [arg c-electric-flag self-insert-command prefix-numeric-value get-text-property face (font-lock-comment-face font-lock-string-face) cm-indent] 3 nil "*P"])
(byte-code "\300\301\302\303\304\305\306\307\310\307& \210\300\311\312\313\304\314\306\307\310\307& \207" [custom-declare-variable rust-capitalized-idents-are-types t "If non-nil, capitalized identifiers will be treated as types for the purposes of font-lock mode" :type boolean :require rust-mode :group rust-indent-unit 4 "Amount of offset per level of indentation" integer] 10)
(defvar rust-syntax-table (byte-code "\301 \302!\210)\207" [table make-syntax-table c-populate-syntax-table] 2))
(defalias 'make-rust-state #[nil "\301\302\301\303[\304\211\211%C\305\304$\207" [rust-indent-unit vector rust-token-base top nil 0] 8])
(defalias 'rust-state-tokenize '(macro . #[(x) "\301\302BB\207" [x aref (0)] 3]))
(defalias 'rust-state-context '(macro . #[(x) "\301\302BB\207" [x aref (1)] 3]))
(defalias 'rust-state-indent '(macro . #[(x) "\301\302BB\207" [x aref (2)] 3]))
(defalias 'rust-state-last-token '(macro . #[(x) "\301\302BB\207" [x aref (3)] 3]))
(defalias 'rust-context-type '(macro . #[(x) "\301\302BB\207" [x aref (0)] 3]))
(defalias 'rust-context-indent '(macro . #[(x) "\301\302BB\207" [x aref (1)] 3]))
(defalias 'rust-context-column '(macro . #[(x) "\301\302BB\207" [x aref (2)] 3]))
(defalias 'rust-context-align '(macro . #[(x) "\301\302BB\207" [x aref (3)] 3]))
(defalias 'rust-context-info '(macro . #[(x) "\301\302BB\207" [x aref (4)] 3]))
(defalias 'rust-push-context #[(st type &optional align-column auto-align) "\306 \307H\n\211\205 \203 \310\202 \311\312% \211\313\f\313HBI\210)\f)\207" [type st align-column auto-align ctx #1=#:v vector 2 t unset nil 1] 7])
(defalias 'rust-pop-context #[(st) "\211\304H \304 \304HAI\210)@\211\305\n\304HI\210)\n)\207" [st #1=#:v old #2=#:v 1 2] 6])
(defalias 'rust-dup-context #[(st) "\304H\305 @!\211\304\n ABI\210)\n*\207" [st list dup #1=#:v 1 copy-sequence] 5])
(defvar rust-operator-chars "-+/%=<>!*&|@~^")
(defvar rust-punc-chars "()[].,{}:;")
(defvar rust-value-keywords (byte-code "\303\304\305\"\306\307\211\203 \n@\310 \311#\210\nA\211\204 *\312\307\211\2036 \n@\310 \313#\210\nA\211\204&