Files
emacsd/elpa/vue-html-mode-20180428.2035/vue-html-mode.elc

48 lines
6.0 KiB
Plaintext
Raw Normal View History

2019-12-01 19:55:19 +01:00
;ELC
;;; Compiled
;;; in Emacs version 26.3
;;; 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.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(custom-declare-group 'vue-html nil "Major mode for vue template files" :prefix "vue-html-" :group 'languages :link '(url-link :tag "Github" "https://github.com/AdamNiederer/vue-html-mode") :link '(emacs-commentary-link :tag "Commentary" "vue-html-mode"))
(defconst vue-html-complex-interp-regex "\\({{\\)\\([^{].*?\\)?\\(|\\) *\\(.*?\\)(.*) *\\(}}\\)")
(defconst vue-html-filter-interp-regex "\\({{\\)\\([^{].*?\\)?\\(|\\) *\\([^()]*?\\) *\\(}}\\)")
(defconst vue-html-simple-interp-regex "\\({{\\)\\(?:[^{].*?\\)?\\(}}\\)")
(defconst vue-html-shorthand-regex "\\s +\\([@:]\\)\\([A-z0-9-.]+\\)=.*?")
(defconst vue-html-directive-regex "\\b\\(v-[A-Za-z0-9-.]+\\)\\(:[A-z.]\\)?")
(defconst vue-html-keyword-regex "\\(v-\\(?:for\\|if\\|else-if\\|else\\|once\\)\\)[^-.A-Za-z0-9]")
(byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\306\307&\210\300\313\314\315\304\305\306\316&\207" [custom-declare-variable vue-html-tab-width 2 "Tab width for vue-html-mode." :group vue-html :type integer vue-html-extra-indent 0 "The number of columns added to every line's indentation." vue-html-color-interpolations nil "Whether to color the body of variable interpolations the same as delimiters.\nDoes not affect the colors of filters and their arguments." boolean] 8)
#@80 List of Font Lock rules applied if `vue-html-color-interpolations' is non-nil.
(defconst vue-html-color-interpolations-font-lock-keywords (byte-code "\303B \304B\n\305BE\207" [vue-html-simple-interp-regex vue-html-filter-interp-regex vue-html-complex-interp-regex (0 font-lock-variable-name-face t) (2 font-lock-variable-name-face t) (2 font-lock-variable-name-face t)] 4) (#$ . 1689))
#@70 List of Font Lock keywords which are applied regardless of settings.
(defconst vue-html-font-lock-keywords (byte-code "\306B\307B \310B \311B \312B \313B\n\314B\n\315B\n\316B\n\317B \320B\f\321B\f\322B \323B\257\207" [vue-html-simple-interp-regex vue-html-filter-interp-regex vue-html-complex-interp-regex vue-html-directive-regex vue-html-shorthand-regex vue-html-keyword-regex (1 font-lock-variable-name-face t) (2 font-lock-variable-name-face t) (1 font-lock-variable-name-face t) (3 font-lock-function-name-face t) (4 font-lock-function-name-face t) (5 font-lock-variable-name-face t) (1 font-lock-variable-name-face t) (3 font-lock-function-name-face t) (4 font-lock-function-name-face t) (5 font-lock-variable-name-face t) (1 font-lock-builtin-face t) (1 font-lock-builtin-face t) (2 font-lock-variable-name-face t) (1 font-lock-keyword-face t)] 15) (#$ . 2082))
#@27 Keymap for vue-html-mode.
(defvar vue-html-mode-map (make-keymap) (#$ . 2960))
#@57 Return whether point is on the last line in the buffer.
(defalias 'vue-html-last-line-p #[nil "\212\300 \300d!U)\207" [line-number-at-pos] 3 (#$ . 3045)])
#@43 Return whether point is on an empty line.
(defalias 'vue-html-line-empty-p #[nil "\301\302 \303 {\304\305\306#)\207" [inhibit-changing-match-data "^ *$" point-at-bol point-at-eol nil t string-match] 7 (#$ . 3206)])
#@80 Indent the line according to `vue-html-tab-width' and `vue-html-extra-indent'.
(defalias 'vue-html-indent #[nil "\301 \302U\203 \303!\207\304 \203\305 \203\303\306!\207\307 \207" [vue-html-extra-indent line-number-at-pos 1 indent-line-to vue-html-last-line-p vue-html-line-empty-p 0 sgml-indent-line] 2 (#$ . 3431)])
(defvar vue-html-mode-hook nil)
(byte-code "\300\301N\204\f\302\300\301\303#\210\304\305!\204\302\305\306\307#\210\300\207" [vue-html-mode-hook variable-documentation put "Hook run after entering vue-html mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp vue-html-mode-map definition-name vue-html-mode] 4)
(defvar vue-html-mode-map (make-sparse-keymap))
(byte-code "\301\302N\204\303\301\302\304\305!#\210\306\307!\204\303\307\310\311#\210\312\313 !\210\307\302N\204-\303\307\302\304\314!#\210\306\300!\204B\303\300\310\311#\210\315\316\300\317\"\210!\210\300\302N\204P\303\300\302\304\320!#\210\303\311\321\322#\207" [vue-html-mode-abbrev-table vue-html-mode-map variable-documentation put purecopy "Keymap for `vue-html-mode'." boundp vue-html-mode-syntax-table definition-name vue-html-mode (lambda (#1=#:def-tmp-var) (defvar vue-html-mode-syntax-table #1#)) make-syntax-table "Syntax table for `vue-html-mode'." (lambda (#1#) (defvar vue-html-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `vue-html-mode'." derived-mode-parent html-mode] 5)
#@228 Major mode for Vue.js templates.
In addition to any hooks its parent mode `html-mode' might have run,
this mode runs the hook `vue-html-mode-hook', as the final or penultimate step
during initialization.
\{vue-html-mode-map}
(defalias 'vue-html-mode #[nil "\306\300!\210\307\310 \210\311\312\310\313N\203\314\311\313\310\313N#\210\315 !\204'\316 \317 \"\210\320\f!\211\2036 \321 =\203<\322\f\323 \"\210)\324\325\"\204V=\204V\326\325C#\210\327 !\210\330\f!\210 !\331\"\332\333#\"\210$\203z\332\333%\"\210)\334\335!\207" [delay-mode-hooks major-mode mode-name vue-html-mode-map vue-html-mode-syntax-table parent make-local-variable t html-mode vue-html-mode "vue-html" mode-class put keymap-parent set-keymap-parent current-local-map char-table-parent standard-syntax-table set-char-table-parent syntax-table abbrev-table-get :parents abbrev-table-put use-local-map set-syntax-table vue-html-indent font-lock-add-keywords nil run-mode-hooks vue-html-mode-hook vue-html-mode-abbrev-table local-abbrev-table vue-html-tab-width tab-width indent-line-function vue-html-font-lock-keywords vue-html-color-interpolations vue-html-color-interpolations-font-lock-keywords] 6 (#$ . 4929) nil])
(provide 'vue-html-mode)