-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvue-ts-mode.elc
More file actions
55 lines (42 loc) · 10.4 KB
/
Copy pathvue-ts-mode.elc
File metadata and controls
55 lines (42 loc) · 10.4 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
;ELC
;;; Compiled
;;; in Emacs version 31.0.60
;;; with all optimizations.
#@62 Number of spaces for each indentation step in `vue-ts-mode'.#@50 Tree-sitter indentation rules for `vue-ts-mode'.
(byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310\311%\210\312\313\314\315\316DD\317\320\321\310\305\322\323& \207" [require treesit typescript-ts-mode css-mode custom-declare-group vue nil "Major mode for editing Vue templates." :group languages custom-declare-variable vue-ts-mode-indent-offset funcall function #[0 "\300\207" [2] 1] (#$ . 86) :type integer :package-version (vue-ts-mode . "1.0.0")] 10)
(defvar vue-ts-mode--indent-rules (byte-code "\301\302\303\304\302\"\305\"B\306\304\306\307\306!\"BE\207" [css--treesit-indent-rules (vue ((node-is "/>") parent-bol 0) ((node-is ">") parent-bol 0) ((node-is "end_tag") parent-bol 0) ((parent-is "comment") prev-adaptive-prefix 0) ((parent-is "element") parent-bol vue-ts-mode-indent-offset) ((parent-is "text") grand-parent vue-ts-mode-indent-offset) ((parent-is "script_element") parent-bol 0) ((parent-is "style_element") parent-bol 0) ((parent-is "template_element") parent-bol vue-ts-mode-indent-offset) ((parent-is "start_tag") parent-bol vue-ts-mode-indent-offset) ((parent-is "self_closing_tag") parent-bol vue-ts-mode-indent-offset)) css append alist-get (((parent-is "stylesheet") parent-bol 0)) typescript typescript-ts-mode--indent-rules] 7) (#$ . 152))#@50 Face for html tags angle brackets (<, > and />).#@78 Prefix with PREFIX the font lock features in SETTINGS.
(fn PREFIX SETTINGS)#@16
(fn SETTING)
(custom-declare-face 'vue-ts-mode-template-tag-bracket-face '((t :foreground "#86e1fc")) '(#$ . 1449) :group 'vue-ts-mode-faces)
(defalias 'vue-ts-mode--prefix-font-lock-features #[514 "\300\301\302\"\"\207" [mapcar make-closure #[257 "\301!\211AA\302\303\304\300\3058#!\240\210\207" [V0 copy-sequence intern format "%s-%s" 2] 9 (#$ . 1585)]] 6 (#$ . 1503)])#@46 Return font-lock settings for `vue-ts-mode'.
(defalias 'vue-ts-mode--font-lock-settings #[0 "\301\302\303\304\305!\"\302\306\"\307\310\311\312\313\314\315\316\310\311\312\313\314\317\320\310\311\314\321\322\310\311\312\313\314\323\324\310\311\312\313\314\325\326\310\311\312\313\314\327\330\310\311\314\331\332\310\305\312\313\314\333\334\310\305\312\313\314\335\336\310\305\312\313\314\337\340&B#\207" [css--treesit-settings append vue-ts-mode--prefix-font-lock-features "typescript" typescript-ts-mode--font-lock-settings typescript "css" treesit-font-lock-rules :language vue :override t :feature vue-ref ((element (_ (attribute (attribute_name) @font-lock-type-face (:equal @font-lock-type-face "ref") (quoted_attribute_value (attribute_value) @font-lock-variable-name-face))))) vue-sp-dir ((_ (_ (directive_attribute (directive_name) @font-lock-type-face (:match "\\`\\(v-if\\|v-for\\|v-model\\|v-else\\|v-else-if\\)\\'" @font-lock-type-face))))) vue-attr ((attribute_name) @font-lock-property-name-face) vue-definition ((tag_name) @font-lock-function-name-face) vue-directive ((_ (_ (directive_attribute (directive_name) @font-lock-keyword-face (directive_argument) @font-lock-type-face)))) vue-bracket ((["{{" "}}" "<" ">" "</" "/>"]) @vue-ts-mode-template-tag-bracket-face) vue-string ((attribute (quoted_attribute_value) @font-lock-string-face)) typescript-custom-property (((property_identifier) @font-lock-property-name-face)) typescript-custom-variable (((identifier) @font-lock-variable-name-face)) typescript-custom-function ((call_expression function: [(identifier) @font-lock-function-call-face (member_expression property: (property_identifier) @font-lock-function-call-face)]))] 70 (#$ . 1969)])
(defvar vue-ts-mode--range-settings (treesit-range-rules :embed 'typescript :host 'vue '((script_element (raw_text) @capture)) :embed 'typescript :host 'vue :local t '((interpolation (raw_text) @capture)) :embed 'typescript :host 'vue :local t '((directive_attribute (quoted_attribute_value (attribute_value) @capture))) :embed 'css :host 'vue '((style_element (raw_text) @capture))))#@273 Return the current ranges for the LANG parser in the current buffer.
If LANG is omitted, return ranges for the first language in the parser list.
If `major-mode' is currently `vue-ts-mode', or if LANG is vue, this function
instead always returns t.
(fn &optional LANG)
(defalias 'vue-ts-mode--advice-for-treesit-buffer-root-node #[256 "\211\301=\204\f \302=\204 \303\207\304\305\206 \306\307 @!!!\207" [major-mode vue vue-ts-mode t treesit-parser-included-ranges treesit-parser-create treesit-parser-language treesit-parser-list] 5 (#$ . 4075)])#@102 Return truthy if `major-mode' is `vue-ts-mode', and if NEW-RANGES is non-nil.
(fn _ NEW-RANGES _ _)
(defalias 'vue-ts-mode--advice-for-treesit--merge-ranges #[1028 "\301=\205 \207" [major-mode vue-ts-mode] 6 (#$ . 4634)])#@106 Return the defun name of NODE.
Return nil if there is no name or if NODE is not a defun node.
(fn NODE)
(defalias 'vue-ts-mode--defun-name #[257 "\300!\301\232\205\f \302\303\"\207" [treesit-node-type "tag_name" treesit-node-text t] 4 (#$ . 4866)])#@43 Return the language at POINT.
(fn POINT)
(defalias 'vue-ts-mode--treesit-language-at-point #[257 "\300\301 \300\211\211:\203a @\262\302!\300\211\211:\203B @\262 @Y\2037 AX\2037 \210\300\211\262\2028 \303\203B A\262\202 \266\203\262\203V \304!\262\300\211\262\202W \303\203a A\262\202 \266\203\211\206h \305\207" [nil treesit-parser-list treesit-parser-included-ranges t treesit-parser-language vue] 12 (#$ . 5123)])#@50 Return the comment syntax for language at point.
(defalias 'vue-ts-mode--comment-for-language-at-point #[0 "\300`!\211\301\267\202 \302\207\303\207\304\207\305\207" [vue-ts-mode--treesit-language-at-point #s(hash-table test eq data (vue 9 typescript 11 css 13)) (:start "<!-- " :start-skip "<!--[ ]*" :end " -->" :end-skip "[ ]*--[ \n]*>") (:start "// " :start-skip "\\(?://+\\|/\\*+\\)\\s-*" :end "" :end-skip "\\s-*\\(\\s>\\|\\*+/\\)") (:start "/*" :start-skip "/\\*+[ ]*" :end "*/" :end-skip "[ ]*\\*+/") nil] 3 (#$ . 5570)])#@22
(fn FN &rest ARGS)
(defalias 'vue-ts-mode--advice-for-comment-fns #[385 "\305=\203\"