Server IP : 111.118.215.189 / Your IP : 13.59.31.221 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/emacs-lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:12:50 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/emacs-lisp/syntax.el ;;; in Emacs version 24.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@673 Mode-specific function to apply `syntax-table' text properties. The value of this variable is a function to be called by Font Lock mode, prior to performing syntactic fontification on a stretch of text. It is given two arguments, START and END: the start and end of the text to be fontified. Major modes can specify a custom function to apply `syntax-table' properties to override the default syntax table in special cases. 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. (defvar syntax-propertize-function nil (#$ . 559)) (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) (#$ . 1331)) (make-variable-buffer-local 'syntax-propertize-extend-region-functions) (defalias 'syntax-propertize-wholelines #[514 "b\210\300 b\210n\203 `\202 \300\301!B\207" [line-beginning-position 2] 5 "\n\n(fn START END)"]) #@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\303\"\203+ \304d\301\305$\206) d\262B\207" [get-text-property syntax-multiline previous-single-property-change font-lock-multiline text-property-any nil] 7 (#$ . 2373)]) #@61 Position up to which syntax-table properties have been set. (defvar syntax-propertize--done -1 (#$ . 2741)) (make-variable-buffer-local 'syntax-propertize--done) (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 "\n\n(fn RE N)"]) #@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 (#$ . 3265)])) (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@\2033 @@9\203# \301@\211@A\240\210@J@\"\240\210\202 @\211@A\240\210@B\262\202 \237\240\266\302C\300C\303\304\305\306\307\310#\311\"\312\313%@\314#\315\316\317\320\321\322\323\324BBE\325@\237BEF\266\203\207" [nil append 0 mapconcat make-byte-code 257 "\304@!\211\305\236\203 \300@A\203 \301\211@T\240\210\306\307Q\262\310\301@\"\262\311\305\236\203= \312\301@!\2036 \313\202h \314\301@D\202h \211AA)\204U \314\301@\211A@)@\\D\202h \315\316\317\320\321\322\323\301!\324\"\325\326%A\"B\313\301@\312!\204\253 A\211\203\216 \211@\211\211A@);\204\207 \311\262A\266\202\202t \210\204\253 \327\330\331\332\333T\334_\335BBE\336BBBB\262\305\262A\211\203\211@\211\211AA)\203\303 \337\340\341C\"\210@\\A@\211;\203\343 \342\314D\343D\344\345\346!D\257C\202E\211\242\347=\203\357 \211A\202E\211\242\350=\2032\211A@;\203\342\314D\343D\351\345\346A@!D\257AAB\202E\327\352\314DD\353\343DD\354A@DE\355AABBBC\202E\327\352\314DD\353\343DD\354DE\356BBC\211AA)\203U\312!\203_\211\237 \244\262 \202v\357\314DA\204m@\202p\360BE B\262 \266A\266\202\202\256 \210\302\237B\302@B\240\266\301\211@\361!\\\240\210\207" vconcat vector [x eval 0 "\\(" "\\)" syntax-propertize--shift-groups nil zerop t match-beginning or mapcar make-byte-code 257 "\301\300@@\\D\207" vconcat vector [match-beginning] 4 "\n\n(fn CASE)" let ((md (match-data 'ints))) setcdr (cdr md) nthcdr 2 (md) ((set-match-data md)) signal cl-assertion-failed (null (cddr case)) put-text-property match-end 'syntax-table quote string-to-syntax ignore prog1 'syntax-table mb me syntax (if syntax (put-text-property mb me 'syntax-table syntax)) ((if syntax (put-text-property mb me 'syntax-table syntax))) if progn regexp-opt-depth] 19 "\n\n(fn RULE)" "\\|" lambda (start end) (goto-char start) while and (< (point) end) re-search-forward (end t) cond] 14 (#$ . 3808)])) (put 'syntax-propertize-rules 'edebug-form-spec '(&rest &or symbolp (form &rest (numberp [&or stringp ("prog1" [&or stringp def-form] def-body) def-form])))) #@216 Propertize for syntax in START..END using font-lock syntax. KEYWORDS obeys the format used in `font-lock-syntactic-keywords'. The return value is a function suitable for `syntax-propertize-function'. (fn KEYWORDS) (defalias 'syntax-propertize-via-font-lock #[257 "\211C\300\301\302\303\304!\305\"\306\307%\207" [make-byte-code 514 "\300@\302\"\210\300 \240)\207" vconcat vector [font-lock-syntactic-keywords font-lock-fontify-syntactic-keywords-region] 5 "\n\n(fn START END)"] 8 (#$ . 7409)]) #@66 Ensure that syntax-table properties are set until POS. (fn POS) (defalias 'syntax-propertize #[257 "\205\212 W\205\212 \306\302!\210\307\212\310 \307\211\307\311\211\311\312\313\314\315\316\317!\320\"\321\322%DC\216 e]d\\^]\211\203w \211A\262@\"\211\203s \211@Y\203_ \211AX\204s \211@\262\211A\262A=\204s \262\210\202@ \323\324#\210\"\266\203.\262)\207" [syntax-propertize-function syntax-propertize--done parse-sexp-lookup-properties buffer-undo-list inhibit-read-only inhibit-modification-hooks make-local-variable t buffer-modified-p nil funcall make-byte-code 0 "\300?\205 \301\302!\207" vconcat vector [restore-buffer-modified-p nil] 2 "\n\n(fn)" remove-text-properties (syntax-table nil syntax-multiline nil) deactivate-mark buffer-file-name buffer-file-truename syntax-propertize-chunk-size syntax-propertize-extend-region-functions] 10 (#$ . 7913)]) (defalias 'syntax-ppss-depth #[257 "\211@\207" [] 2 "\n\n(fn PPSS)"]) (put 'syntax-ppss-depth 'byte-optimizer 'byte-compile-inline-expand) #@432 Get the latest syntactically outermost position found in a syntactic scan. PPSS is a scan state, as returned by `parse-partial-sexp' or `syntax-ppss'. An "outermost position" means one that it is outside of any syntactic entity: outside of any parentheses, comments, or strings encountered in the scan. If no such position is recorded in PPSS (because the end of the scan was itself at the outermost level), return nil. (fn PPSS) (defalias 'syntax-ppss-toplevel-pos #[257 "\3008@\206\n \3018\207" [9 8] 3 (#$ . 8963)]) (defalias 'syntax-ppss-context #[257 "\3008\203 \301\207\3028\203 \303\207\304\207" [3 string 4 comment nil] 3 "\n\n(fn PPSS)"]) (put 'syntax-ppss-context 'byte-optimizer 'byte-compile-inline-expand) #@181 Threshold below which cache info is deemed unnecessary. We try to make sure that cache entries are at least this far apart from each other, to avoid keeping too much useless info. (defvar syntax-ppss-max-span 20000 (#$ . 9696)) #@174 Function to move back outside of any comment/string/paren. This function should move the cursor back to some syntactically safe point (where the PPSS is equivalent to nil). (defvar syntax-begin-function nil (#$ . 9931)) #@54 List of (POS . PPSS) pairs, in decreasing POS order. (defvar syntax-ppss-cache nil (#$ . 10157)) (make-variable-buffer-local 'syntax-ppss-cache) #@34 Cache of (LAST-POS . LAST-PPSS). (defvar syntax-ppss-last nil (#$ . 10308)) (byte-code "\300\301!\210\302\303\304\"\207" [make-variable-buffer-local syntax-ppss-last defalias syntax-ppss-after-change-function syntax-ppss-flush-cache] 3) #@84 Flush the cache of `syntax-ppss' starting at position BEG. (fn BEG &rest IGNORED) (defalias 'syntax-ppss-flush-cache #[385 "^ \203 \211@@)V\203 A\211\204 @\206! \304W\205? \305A!\2064 \3068\2064 \304X\203<