%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/emacs-lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/emacs-lisp/syntax.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@906 Mode-specific function to apply `syntax-table' text properties. It is the work horse of `syntax-propertize', which is called by things like Font-Lock and indentation. It is given two arguments, START and END: the start and end of the text to which `syntax-table' might need to be applied. Major modes can use this to override the buffer's syntax table for special syntactic constructs that cannot be handled just by the buffer's syntax-table. The specified function may call `syntax-ppss' on any position before END, but it should not call `syntax-ppss-flush-cache', which means that it should not call `syntax-ppss' on some position and later modify the buffer on some earlier position. Note: When this variable is a function, it must apply _all_ the `syntax-table' properties needed in the given text interval. Using both this function and other means to apply these properties won't work properly. (defvar syntax-propertize-function nil (#$ . 409)) (defvar syntax-propertize-chunk-size 500) #@723 Special hook run just before proceeding to propertize a region. This is used to allow major modes to help `syntax-propertize' find safe buffer positions as beginning and end of the propertized region. Its most common use is to solve the problem of /identification/ of multiline elements by providing a function that tries to find such elements and move the boundaries such that they do not fall in the middle of one. Each function is called with two arguments (START and END) and it should return either a cons (NEW-START . NEW-END) or nil if no adjustment should be made. These functions are run in turn repeatedly until they all return nil. Put first the functions more likely to cause a change and cheaper to compute. (defvar syntax-propertize-extend-region-functions '(syntax-propertize-wholelines) (#$ . 1414)) (make-variable-buffer-local 'syntax-propertize-extend-region-functions) #@67 compiler-macro for inlining `ppss-depth'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-depth--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-depth (progn (car cl-x))) nil] 9 (#$ . 2309)]) (put 'ppss-depth 'compiler-macro 'ppss-depth--cmacro) #@72 Access slot "depth" of `ppss' struct CL-X. Depth in parens. (fn CL-X) (defalias 'ppss-depth #[257 "\211@\207" [] 2 (#$ . 2596)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-depth side-effect-free t] 4) #@77 compiler-macro for inlining `ppss-innermost-start'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-innermost-start--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-innermost-start (progn (nth 1 cl-x))) nil] 9 (#$ . 2819)]) (put 'ppss-innermost-start 'compiler-macro 'ppss-innermost-start--cmacro) #@135 Access slot "innermost-start" of `ppss' struct CL-X. Character address of start of innermost containing list; nil if none. (fn CL-X) (defalias 'ppss-innermost-start #[257 "\211A@\207" [] 2 (#$ . 3159)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-innermost-start side-effect-free t] 4) #@86 compiler-macro for inlining `ppss-last-complete-sexp-start'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-last-complete-sexp-start--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-last-complete-sexp-start (progn (nth 2 cl-x))) nil] 9 (#$ . 3466)]) (put 'ppss-last-complete-sexp-start 'compiler-macro 'ppss-last-complete-sexp-start--cmacro) #@135 Access slot "last-complete-sexp-start" of `ppss' struct CL-X. Character address of start of last complete sexp terminated. (fn CL-X) (defalias 'ppss-last-complete-sexp-start #[257 "\3008\207" [2] 3 (#$ . 3851)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-last-complete-sexp-start side-effect-free t] 4) #@79 compiler-macro for inlining `ppss-string-terminator'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-string-terminator--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-string-terminator (progn (nth 3 cl-x))) nil] 9 (#$ . 4177)]) (put 'ppss-string-terminator 'compiler-macro 'ppss-string-terminator--cmacro) #@220 Access slot "string-terminator" of `ppss' struct CL-X. Non-nil if inside a string. (it is the character that will terminate the string, or t if the string should be terminated by a generic string delimiter.) (fn CL-X) (defalias 'ppss-string-terminator #[257 "\3008\207" [3] 3 (#$ . 4527)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-string-terminator side-effect-free t] 4) #@75 compiler-macro for inlining `ppss-comment-depth'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-comment-depth--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-comment-depth (progn (nth 4 cl-x))) nil] 9 (#$ . 4924)]) (put 'ppss-comment-depth 'compiler-macro 'ppss-comment-depth--cmacro) #@172 Access slot "comment-depth" of `ppss' struct CL-X. nil if outside a comment, t if inside a non-nestable comment, else an integer (the current comment nesting). (fn CL-X) (defalias 'ppss-comment-depth #[257 "\3008\207" [4] 3 (#$ . 5254)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-comment-depth side-effect-free t] 4) #@70 compiler-macro for inlining `ppss-quoted-p'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-quoted-p--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-quoted-p (progn (nth 5 cl-x))) nil] 9 (#$ . 5595)]) (put 'ppss-quoted-p 'compiler-macro 'ppss-quoted-p--cmacro) #@92 Access slot "quoted-p" of `ppss' struct CL-X. t if following a quote character. (fn CL-X) (defalias 'ppss-quoted-p #[257 "\3008\207" [5] 3 (#$ . 5899)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-quoted-p side-effect-free t] 4) #@71 compiler-macro for inlining `ppss-min-depth'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-min-depth--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-min-depth (progn (nth 6 cl-x))) nil] 9 (#$ . 6150)]) (put 'ppss-min-depth 'compiler-macro 'ppss-min-depth--cmacro) #@117 Access slot "min-depth" of `ppss' struct CL-X. The minimum depth in parens encountered during this scan. (fn CL-X) (defalias 'ppss-min-depth #[257 "\3008\207" [6] 3 (#$ . 6460)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-min-depth side-effect-free t] 4) #@75 compiler-macro for inlining `ppss-comment-style'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-comment-style--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-comment-style (progn (nth 7 cl-x))) nil] 9 (#$ . 6738)]) (put 'ppss-comment-style 'compiler-macro 'ppss-comment-style--cmacro) #@89 Access slot "comment-style" of `ppss' struct CL-X. Style of comment, if any. (fn CL-X) (defalias 'ppss-comment-style #[257 "\3008\207" [7] 3 (#$ . 7067)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-comment-style side-effect-free t] 4) #@85 compiler-macro for inlining `ppss-comment-or-string-start'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-comment-or-string-start--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-comment-or-string-start (progn (nth 8 cl-x))) nil] 9 (#$ . 7325)]) (put 'ppss-comment-or-string-start 'compiler-macro 'ppss-comment-or-string-start--cmacro) #@141 Access slot "comment-or-string-start" of `ppss' struct CL-X. Character address of start of comment or string; nil if not in one. (fn CL-X) (defalias 'ppss-comment-or-string-start #[257 "\3008\207" [8] 3 (#$ . 7705)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-comment-or-string-start side-effect-free t] 4) #@73 compiler-macro for inlining `ppss-open-parens'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-open-parens--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-open-parens (progn (nth 9 cl-x))) nil] 9 (#$ . 8035)]) (put 'ppss-open-parens 'compiler-macro 'ppss-open-parens--cmacro) #@122 Access slot "open-parens" of `ppss' struct CL-X. List of positions of currently open parens, outermost first. (fn CL-X) (defalias 'ppss-open-parens #[257 "\3008\207" [9] 3 (#$ . 8355)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-open-parens side-effect-free t] 4) #@82 compiler-macro for inlining `ppss-two-character-syntax'. (fn CL-WHOLE-ARG CL-X) (defalias 'ppss-two-character-syntax--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block ppss-two-character-syntax (progn (nth 10 cl-x))) nil] 9 (#$ . 8642)]) (put 'ppss-two-character-syntax 'compiler-macro 'ppss-two-character-syntax--cmacro) #@310 Access slot "two-character-syntax" of `ppss' struct CL-X. When the last position scanned holds the first character of a (potential) two character construct, the syntax of that position, otherwise nil. That construct can be a two character comment delimiter or an Escaped or Char-quoted character. (fn CL-X) (defalias 'ppss-two-character-syntax #[257 "\3008\207" [10] 3 (#$ . 9008)]) (byte-code "\300\301\302\303#\300\207" [function-put ppss-two-character-syntax side-effect-free t] 4) #@241 compiler-macro for inlining `make-ppss'. (fn CL-WHOLE &cl-quote &key DEPTH INNERMOST-START LAST-COMPLETE-SEXP-START STRING-TERMINATOR COMMENT-DEPTH QUOTED-P MIN-DEPTH COMMENT-STYLE COMMENT-OR-STRING-START OPEN-PARENS TWO-CHARACTER-SYNTAX) (defalias 'make-ppss--cmacro #[385 "\301\302\"A@\301\303\"A@\301\304\"A@\301\305\"A@\301\306\"A@\301\307\"A@\301\310\"A@\301\311\"A@\301\312\"A@\301 \313\"A@\301\n\314\"A@\n\211\203v \211@\315>\203^ \211AA\262\202K \316\f>A@\203m \317\262\202K \320\321@\"\210\202K \210\322\323\324\317\317&)\207" [comment-style plist-member :depth :innermost-start :last-complete-sexp-start :string-terminator :comment-depth :quoted-p :min-depth :comment-style :comment-or-string-start :open-parens :two-character-syntax (:depth :innermost-start :last-complete-sexp-start :string-terminator :comment-depth :quoted-p :min-depth :comment-style :comment-or-string-start :open-parens :two-character-syntax :allow-other-keys) :allow-other-keys nil error "Keyword argument %s not one of (:depth :innermost-start :last-complete-sexp-start :string-terminator :comment-depth :quoted-p :min-depth :comment-style :comment-or-string-start :open-parens :two-character-syntax)" cl--defsubst-expand (depth innermost-start last-complete-sexp-start string-terminator comment-depth quoted-p min-depth comment-style comment-or-string-start open-parens two-character-syntax) (cl-block make-ppss (list depth innermost-start last-complete-sexp-start string-terminator comment-depth quoted-p min-depth comment-style comment-or-string-start open-parens two-character-syntax))] 29 (#$ . 9503)]) (put 'make-ppss 'compiler-macro 'make-ppss--cmacro) #@221 Constructor for objects of type `ppss'. (fn &key DEPTH INNERMOST-START LAST-COMPLETE-SEXP-START STRING-TERMINATOR COMMENT-DEPTH QUOTED-P MIN-DEPTH COMMENT-STYLE COMMENT-OR-STRING-START OPEN-PARENS TWO-CHARACTER-SYNTAX) (defalias 'make-ppss #[128 "\301\302\"A@\301\303\"A@\301\304\"A@\301\305\"A@\301\306\"A@\301\307\"A@\301\310\"A@\301\311\"A@\301\312\"A@\301 \313\"A@\301\n\314\"A@\n\211\203v \211@\315>\203^ \211AA\262\202K \316\f>A@\203m \317\262\202K \320\321@\"\210\202K \210 \n\n\n\257)\207" [comment-style plist-member :depth :innermost-start :last-complete-sexp-start :string-terminator :comment-depth :quoted-p :min-depth :comment-style :comment-or-string-start :open-parens :two-character-syntax (:depth :innermost-start :last-complete-sexp-start :string-terminator :comment-depth :quoted-p :min-depth :comment-style :comment-or-string-start :open-parens :two-character-syntax :allow-other-keys) :allow-other-keys nil error "Keyword argument %s not one of (:depth :innermost-start :last-complete-sexp-start :string-terminator :comment-depth :quoted-p :min-depth :comment-style :comment-or-string-start :open-parens :two-character-syntax)"] 22 (#$ . 11201)]) (byte-code "\300\301\302\303#\304\305\306\211\307\306\310\311\305\306& \207" [function-put make-ppss side-effect-free t cl-struct-define ppss nil list ((depth nil :documentation "Depth in parens.") (innermost-start nil :documentation "Character address of start of innermost containing list; nil if none.") (last-complete-sexp-start nil :documentation "Character address of start of last complete sexp terminated.") (string-terminator nil :documentation "Non-nil if inside a string.\n(it is the character that will terminate the string, or t if the\nstring should be terminated by a generic string delimiter.)") (comment-depth nil :documentation "nil if outside a comment, t if inside a non-nestable comment,\nelse an integer (the current comment nesting).") (quoted-p nil :documentation "t if following a quote character.") (min-depth nil :documentation "The minimum depth in parens encountered during this scan.") (comment-style nil :documentation "Style of comment, if any.") (comment-or-string-start nil :documentation "Character address of start of comment or string; nil if not in one.") (open-parens nil :documentation "List of positions of currently open parens, outermost first.") (two-character-syntax nil :documentation "When the last position scanned holds the first character of a\n(potential) two character construct, the syntax of that position,\notherwise nil. That construct can be a two character comment\ndelimiter or an Escaped or Char-quoted character.")) cl-struct-ppss-tags] 11) #@18 (fn START END) (defalias 'syntax-propertize-wholelines #[514 "b\210\300 b\210n\203 `\202 \300\301!B\207" [line-beginning-position 2] 5 (#$ . 13918)]) #@87 Let `syntax-propertize' pay attention to the syntax-multiline property. (fn BEG END) (defalias 'syntax-propertize-multiline #[514 "eV\203 \300S\301\"\203 \302\301\"\206 e\262\300\301\"\203+ \303d\301\304$\206) d\262B\207" [get-text-property syntax-multiline previous-single-property-change text-property-any nil] 7 (#$ . 14080)]) #@13 (fn RE N) (defalias 'syntax-propertize--shift-groups #[514 "\300\301\302\303\304\305\306!\307\"\310\311%\312\211%\207" [replace-regexp-in-string "\\\\(\\?\\([0-9]+\\):" make-byte-code 257 "\301\302\300\303\304\305\"!\\!\306\211\305%\207" vconcat vector [replace-match number-to-string string-to-number match-string 1 t] 8 "\n\n(fn S)" t] 10 (#$ . 14429)]) #@351 Return a precompiled form of RULES to pass to `syntax-propertize-rules'. The arg RULES can be of the same form as in `syntax-propertize-rules'. The return value is an object that can be passed as a rule to `syntax-propertize-rules'. I.e. this is useful only when you want to share rules among several `syntax-propertize-function's. (fn &rest RULES) (defalias 'syntax-propertize-precompile-rules '(macro . #[128 "\300D\207" [quote] 3 (#$ . 14800)])) (put 'syntax-propertize-precompile-rules 'edebug-form-spec 'syntax-propertize-rules) #@1464 Make a function that applies RULES for use in `syntax-propertize-function'. The function will scan the buffer, applying the rules where they match. The buffer is scanned a single time, like "lex" would, rather than once per rule. Each RULE can be a symbol, in which case that symbol's value should be, at macro-expansion time, a precompiled set of rules, as returned by `syntax-propertize-precompile-rules'. Otherwise, RULE should have the form (REGEXP HIGHLIGHT1 ... HIGHLIGHTn), where REGEXP is an expression (evaluated at time of macro-expansion) that returns a regexp, and where HIGHLIGHTs have the form (NUMBER SYNTAX) which means to apply the property SYNTAX to the chars matched by the subgroup NUMBER of the regular expression, if NUMBER did match. SYNTAX is an expression that returns a value to apply as `syntax-table' property. Some expressions are handled specially: - if SYNTAX is a string, then it is converted with `string-to-syntax'; - if SYNTAX has the form (prog1 EXP . EXPS) then the value returned by EXP will be applied to the buffer before running EXPS and if EXP is a string it is also converted with `string-to-syntax'. The SYNTAX expression is responsible to save the `match-data' if needed for subsequent HIGHLIGHTs. Also SYNTAX is free to move point, in which case RULES may not be applied to some parts of the text or may be applied several times to other parts. Note: back-references in REGEXPs do not work. (fn &rest RULES) (defalias 'syntax-propertize-rules '(macro . #[128 "\211C\300\242\2033 \242@9\203# \301\242\211\242A\240\210\242J\242\"\240\210\202 \242\211\242A\240\210\242B\262\202 \237\240\266\302C\300C\303\304\305\306\307\310#\311\"\312\313%\242\314#\315\316\317\320\321\322\323\324BBE\325\242\237BEF\266\203\207" [nil append 0 mapconcat make-byte-code 257 "\303@\304\"\211\305\236\203 \300\242A\203 \301\211\242T\240\210\306\307Q\262\310\301\242\"\262\311\305\236\203>