;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (require 'ng2-shared) (defconst ng2-html-var-regex "\\(#\\)\\(\\w+\\)") (defconst ng2-html-interp-regex "\\({{\\)\\s-*[^{].+?\\(}}\\)") (defconst ng2-html-pipe-regex "|\\s-*\\([A-Za-z0-9]+\\)") (defconst ng2-html-directive-regex "\\([*]\\)\\(.*?\\)[\"= ]") (defconst ng2-html-binding-regex "\\(\\[(?\\)\\(.*?\\)\\()?\\]\\)=\\(\".*?\"\\)") (defconst ng2-html-event-regex "\\((\\)\\(.*?\\)\\()\\)=\".*?\"") #@121 Opens the corresponding component TypeScript file, then places the cursor at the function corresponding to the binding. (defalias 'ng2-html-goto-binding #[nil "\301 \302 \210\303!)\207" [name symbol-at-point ng2-open-counterpart ng2-ts-goto-name] 2 (#$ . 493) nil]) (defvar ng2-html-font-lock-keywords (byte-code "\306B\307B \310B \311B\n\312B \313B \314B\f\315B\f\316B\f\317B \320B \321B \322B\257 \207" [ng2-html-var-regex ng2-html-interp-regex ng2-html-pipe-regex ng2-html-directive-regex ng2-html-binding-regex ng2-html-event-regex ((1 font-lock-builtin-face)) ((2 font-lock-variable-name-face)) (1 font-lock-variable-name-face) (2 font-lock-variable-name-face) (1 font-lock-function-name-face) (1 font-lock-builtin-face t) (2 font-lock-keyword-face t) (1 font-lock-builtin-face t) (2 font-lock-builtin-face t) (3 font-lock-builtin-face t) (1 font-lock-builtin-face t) (2 font-lock-builtin-face t) (3 font-lock-builtin-face t)] 14)) #@27 Keymap for ng2-html-mode. (defvar ng2-html-map (byte-code "\301 \302\303\304#\210\302\305\306#\210)\207" [map make-keymap define-key [3 67108910] ng2-html-goto-binding "" ng2-open-counterpart] 4) (#$ . 1440)) (defvar ng2-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" [ng2-html-mode-hook variable-documentation put "Hook run after entering ng2-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 ng2-html-mode-map definition-name ng2-html-mode] 4) (defvar ng2-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" [ng2-html-mode-abbrev-table ng2-html-mode-map variable-documentation put purecopy "Keymap for `ng2-html-mode'." boundp ng2-html-mode-syntax-table definition-name ng2-html-mode (lambda (def-tmp-var) (defvar ng2-html-mode-syntax-table def-tmp-var)) make-syntax-table "Syntax table for `ng2-html-mode'." (lambda (def-tmp-var) (defvar ng2-html-mode-abbrev-table def-tmp-var)) define-abbrev-table nil "Abbrev table for `ng2-html-mode'." derived-mode-parent html-mode] 5) #@230 Major mode for Angular 2 templates In addition to any hooks its parent mode `html-mode' might have run, this mode runs the hook `ng2-html-mode-hook', as the final or penultimate step during initialization. \{ng2-html-mode-map} (defalias 'ng2-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\327!\210\331\332 \"\210)\333\334!\207" [delay-mode-hooks major-mode mode-name ng2-html-mode-map ng2-html-mode-syntax-table parent make-local-variable t html-mode ng2-html-mode "ng2-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 font-lock-add-keywords nil run-mode-hooks ng2-html-mode-hook ng2-html-mode-abbrev-table local-abbrev-table ng2-html-map ng2-html-font-lock-keywords] 6 (#$ . 2849) nil]) (byte-code "\300\301\302\"\210\303\304!\207" [add-to-list auto-mode-alist ("\\.component.html\\'" . ng2-html-mode) provide ng2-html] 3)