;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\207" [custom-declare-variable nginx-indent-level 4 "*Indentation of Nginx statements." :type integer :group nginx nginx-indent-tabs-mode nil "*Indentation can insert tabs in nginx mode if this is non-nil." boolean] 8) #@32 Syntax table for `nginx-mode'. (defvar nginx-mode-syntax-table (byte-code "\301 \302\303\304#\210\302\305\306#\210)\207" [table make-syntax-table modify-syntax-entry 35 "< b" 10 "> b"] 4) (#$ . 390)) (defvar nginx-font-lock-keywords (list '("^\\([ ]+\\)?\\([A-Za-z09_]+\\)" 2 font-lock-keyword-face t) '("^\\([ ]+\\)?rewrite[ ]+.+[ ]+\\(permanent\\|redirect\\|break\\|last\\);$" 2 font-lock-function-name-face) '("\\($[0-9]+\\)[^0-9]" 1 font-lock-constant-face) '("$[A-Za-z0-9_-]+" . font-lock-variable-name-face) '("[ ]+\\(on\\|off\\);$" 1 font-lock-constant-face) '("[A-Za-z0-9_-]+\\([ ]+[^ \n]+\\)?[ ]+\\([^ \n]+\\)[ ]+{" 2 font-lock-function-name-face))) #@183 If point is in a block, return the indentation of the first line of that block (the line containing the opening brace). Used to set the indentation of the closing brace of a block. (defalias 'nginx-block-indent #[nil "\212\305 \306\216`\307\310\311\312# \205A\313\314 \n#\315 \203:\f V\203:\307\310\311\312#\211\203\313\314 \n# T\202* \205A\316 -\207" [save-match-data-internal apoint opoint open-braces close-braces match-data #[nil "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3] search-backward "{" nil t count-matches "}" 0 current-indentation] 6 (#$ . 1070)]) #@44 Return non-nil iff this line is a comment. (defalias 'nginx-comment-line-p #[nil "\212\301 \302\216\303 \210\304\305!+\207" [save-match-data-internal match-data #[nil "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3] beginning-of-line looking-at "^\\s-*#"] 2 (#$ . 1683)]) #@36 Indent current line as nginx code. (defalias 'nginx-indent-line #[nil "\304 \210o\203 \305\306!\207\307\310 \311\312\313!\203! \203! \202c\212\n\203b\314y\210\315 \2038o\203\"\311\211\202#\312\316!\203G\317 \311\211\202#\312\320!\203X\317 \\\311\211\202#o\203\"\311\211\204&)\203s\306V\203s\305!\202v\305\306!+\207" [cur-indent block-indent not-indented nginx-indent-level beginning-of-line indent-line-to 0 t nginx-block-indent nil looking-at "^\\s-*}\\s-*$" -1 nginx-comment-line-p "^\\s-*}\\s-*" current-indentation "^.*{[^\n}]*$"] 4 (#$ . 1986) nil]) #@40 Keymap for editing nginx config files. (defvar nginx-mode-map (byte-code "\301 \302\303\304#\210\302\305\304#\210)\207" [map make-sparse-keymap define-key "\n" newline-and-indent " "] 4) (#$ . 2578)) (defvar nginx-mode-hook nil) (byte-code "\300\301N\204\f\302\300\301\303#\210\304\305!\204\302\305\306\307#\210\300\207" [nginx-mode-hook variable-documentation put "Hook run after entering Nginx mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp nginx-mode-map definition-name nginx-mode] 4) (defvar nginx-mode-map (make-sparse-keymap)) (byte-code "\301\302N\204\303\301\302\304\305!#\210\306\300!\204#\303\300\307\310#\210\311\312\300\313\"\210!\210\300\302N\2041\303\300\302\304\314!#\210\303\310\315\316#\207" [nginx-mode-abbrev-table nginx-mode-map variable-documentation put purecopy "Keymap for `nginx-mode'." boundp definition-name nginx-mode (lambda (def-tmp-var) (defvar nginx-mode-abbrev-table def-tmp-var)) define-abbrev-table nil "Abbrev table for `nginx-mode'." derived-mode-parent prog-mode] 5) #@305 Major mode for highlighting nginx config files. The variable nginx-indent-level controls the amount of indentation. \{nginx-mode-map} In addition to any hooks its parent mode `prog-mode' might have run, this mode runs the hook `nginx-mode-hook', as the final or penultimate step during initialization. (defalias 'nginx-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\321\"\204;\f =\204;\322\f\321 C#\210\323 !\210\324)!\210\f\323 !\210\306\325!\210\326\306\327!\210\330\306\331!\210\332\306\333!\210\307\306\334!\210\335\306\336!\210*\306\337!\210\307\306\340!\210\307 \306\341!\210\342!\306\343!\210\344#\306\345!\210\346%)\347\350!\207" [delay-mode-hooks major-mode mode-name nginx-mode-map nginx-mode-abbrev-table local-abbrev-table make-local-variable t prog-mode nginx-mode "Nginx" mode-class put keymap-parent set-keymap-parent current-local-map abbrev-table-get :parents abbrev-table-put use-local-map set-syntax-table comment-start "# " comment-start-skip "#+ *" comment-end "" comment-auto-fill-only-comments indent-line-function nginx-indent-line indent-tabs-mode require-final-newline paragraph-ignore-fill-prefix paragraph-start "\f\\|[ ]*$\\|#$" paragraph-separate "\\([ \f]*\\|#\\)$" font-lock-defaults (nginx-font-lock-keywords nil) run-mode-hooks nginx-mode-hook nginx-mode-syntax-table nginx-indent-tabs-mode] 5 (#$ . 3697) nil]) (byte-code "\300\301\302\"\210\300\301\303\"\210\300\304\305\"\210\306\307!\207" [add-to-list auto-mode-alist ("nginx\\.conf\\'" . nginx-mode) ("/nginx/.+\\.conf\\'" . nginx-mode) magic-fallback-mode-alist ("\\(?:.*\n\\)*\\(?:http\\|server\\|location .+\\|upstream .+\\)[ \n ]+{" . nginx-mode) provide nginx-mode] 3)