%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/cedet/semantic/ |
Current File : //usr/local/share/emacs/27.2/lisp/cedet/semantic/html.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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!\210\300\303!\207" [require semantic semantic/format sgml-mode] 2) #@67 Regular expression used to find special sections in an HTML file. (defvar semantic-html-super-regex "<\\(h[1-9]\\|title\\|script\\|body\\|a +href\\)\\>" (#$ . 509)) #@56 Alist of sectioning commands and their relative level. (defvar semantic-html-section-list '(("title" 1) ("script" 1) ("body" 1) ("a" 11) ("h1" 2) ("h2" 3) ("h3" 4) ("h4" 5) ("h5" 6) ("h6" 7) ("h7" 8) ("h8" 9) ("h9" 10)) (#$ . 680)) #@252 Parse the current html buffer for semantic tags. IGNORE any arguments. Always parse the whole buffer. Each tag returned is of the form: ("NAME" section (:members CHILDREN)) or ("NAME" anchor) Override semantic-parse-region in `html-mode' buffers. (defalias 'semantic-parse-region-html-mode #[(&rest ignore) "\300\301\302 \"\207" [mapcar semantic-html-expand-tag semantic-html-parse-headings] 3 (#$ . 919)]) (byte-code "\300\301\302\303#\210\304\305\306\307#\207" [put semantic-parse-region-html-mode definition-name semantic-parse-region mode-local-bind ((semantic-parse-region . semantic-parse-region-html-mode)) (override-flag t) html-mode] 4) #@106 We can't parse changes for HTML mode right now. Override semantic-parse-changes in `html-mode' buffers. (defalias 'semantic-parse-changes-html-mode #[nil "\301\211\207" [semantic-parse-tree-state needs-rebuild] 2 (#$ . 1576)]) (byte-code "\300\301\302\303#\210\304\305\306\307#\207" [put semantic-parse-changes-html-mode definition-name semantic-parse-changes mode-local-bind ((semantic-parse-changes . semantic-parse-changes-html-mode)) (override-flag t) html-mode] 4) #@26 Expand the HTML tag TAG. (defalias 'semantic-html-expand-tag #[(tag) "\305!\211\203) \306\307\310 \"\211\211AA)\211:\203( \f\311\312\f@\n#!\240\210,\313!@)\207" [tag chil value attribute plist-cdr semantic-html-components :members mapcar semantic-html-expand-tag semantic-tag-make-plist plist-put semantic--tag-expand] 7 (#$ . 2054)]) #@37 Return components belonging to TAG. (defalias 'semantic-html-components #[(tag) "\302\303\3048) \"*\207" [tag attribute :members plist-get 2] 3 (#$ . 2405)]) #@54 Parse the current html buffer for all semantic tags. (defalias 'semantic-html-parse-headings #[nil "\304\212eb\210\305\306\307\310 !\"ed#\311\304\312#\2037 \313\224B\n`\304\247\203- @Y\2052 \314#\266\202 \315\n!\210*\237\316\313\"@)\207" [pass1 buffer-file-name semantic--progress-reporter semantic-html-super-regex nil make-progress-reporter format "Parsing %s..." file-name-nondirectory re-search-forward t 0 progress-reporter-do-update progress-reporter-done semantic-html-recursive-combobulate-list] 7 (#$ . 2575)]) #@183 Set the end point of the first section tag in METATAGLIST to PNT. METATAGLIST is a list of tags in the intermediate tag format used by the html parser. PNT is the new point to set. (defalias 'semantic-html-set-endpoint #[(metataglist pnt) "\304 \203 @\211A@)\305=\204 A\211\204 @\211\205) GS\233\240\210)\207" [metatag metataglist tag pnt nil section] 3 (#$ . 3118)]) #@256 Create a semantic tag of class section. NAME is the name of this section. MEMBERS is a list of semantic tags representing the elements that make up this section. LEVEL is the leveling level. START and END define the location of data described by the tag. (defalias 'semantic-html-new-section-tag #[(name members level start end) "\306=\307\n \203 \310\202 \311\312D\211 \313\f!\314\211\257+ \203) `\202+ D\")\207" [level anchorp name members attributes class 11 append anchor section :members semantic-tag-make-plist nil start end] 7 (#$ . 3508)]) (put 'semantic-html-new-section-tag 'byte-optimizer 'byte-compile-inline-expand) #@139 Extract a section name from the current buffer and point. Assume the cursor is in the tag representing the section we need the name from. (defalias 'semantic-html-extract-section-name #[nil "\212\302\303!\210\303u\210\302\304!\210\305\306w\210\307\310!\203! \302\304!\210\305\306w\210\202 `\306\311\312\306\313#\203>