| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
out of the scan_sexps_forward call.
No need to call find_defun_start
if we found the defun start in the initial scan.
|
| | |
|
| |
|
|
|
| |
(back_comment): Don't allow quoting a comment-end.
(scan_lists): Likewise.
|
| |
|
|
| |
for either kind of buffer. Scan string by bytes and chars.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(find_defun_start): Additional arg POS_BYTE.
Save final byte pos in find_start_value_byte.
(find_start_value_byte): New variable.
(Fforward_comment): Scan by bytes and chars.
(Fbackward_prefix_chars): Scan by bytes and chars.
(scan_words, scan_sexps_forward): Scan bytes as well as chars.
(skip_chars, scan_lists): Scan by bytes and chars. Now static.
(char_quoted): Take charpos and bytepos as args.
(back_comment): Likewise.
(update_syntax_table): Arg renamed.
(inc_bytepos, dec_bytepos): New functions.
|
| |
|
|
| |
whenever not inside a string or a comment.
|
| | |
|
| |
|
|
| |
when reaching the first of the pair.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
(Fmodify_syntax_entry): Use XINT to access c.
(describe_syntax): Use XINT to access first.
|
| | |
|
| |
|
|
| |
New arg COMSTYLE; callers changed.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
text property into account when doing SYNTAX (c).
(ST_COMMENT_STYLE, ST_STRING_STYLE): New codes to denote
delimiters for new types of strings and comments.
(Vparse_sexp_lookup_properties): New variable.
(struct lisp_parse_state): Comment updated.
(gl_state): New global variable.
(update_syntax_table): New function.
(char_quoted): Move earlier, update gl_state when needed.
(find_defun_start): Update gl_state when needed.
(back_comment): New function.
(Scomment_fence, Sstring_fence): New delimeter char classes
denoted by `!' and `|'.
(Fchar_syntax, Fmatching_paren): Update gl_state to whole-bufferstate.
(scan_words): update gl_state when needed.
(Fskip_chars_forward): Move from search.c.
(Fskip_chars_backward): Move from search.c.
(Fskip_syntax_forward): Move from search.c.
(Fskip_syntax_backward): Move from search.c.
(skip_chars): Move from search.c.
(Fforward_comment, scan_lists): Update gl_state when needed.
Handle Scomment_fence, Sstring_fence.
(Fbackward_prefix_chars) Update gl_state when needed.
(scan_sexps_forward): Update gl_state when needed.
Handle Scomment_fence, Sstring_fence. If comment_stop==-1, stop at start
or end of comment or string.
(Fparse-partial-sexp): Doc fix.
(syms_of_syntax): Move initialization of skip* from search.c.
|
| |
|
|
| |
of "comparison is always 1 ...".
|
| |
|
|
| |
VALUE is char-table.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(Vsyntax_code_object): New variable.
(Fmodify_syntax_entry): Handle multibyte characters. A multibyte
character in matching parenthesis is also handled correctly. Use
shared object in the vector Vsyntax_code_object for an ASCII
character.
(describe_syntax): Handle a multibyte character in matching
parenthesis.
(describe_syntax_1): Describe also parent syntax tables.
(scan_words, Fforward_comment): Handle multibyte characters.
(scan_lists, char_quoted, Fbackward_prefix_chars): Likewise.
(scan_sexps_forward): Likewise.
(init_syntax_once): Initialize Vsyntax_code_object.
Initialize Vstandard_syntax_table by share objects in
Vsyntax_code_object.
(syms_of_syntax): Staticpro Vsyntax_code_object.
|
| |
|
|
| |
(syms_of_syntax): Set up Qscan_error.
|
| | |
|
| |
|
|
| |
Set the parent only if it was nil.
|
| | |
|
| |
|
|
| |
Harmonize arguments with documentation.
|
| |
|
|
|
|
| |
Use Qsyntax_table_p for the error message.
(Fmodify_syntax_entry): Don't fail to init MATCH.
|
| |
|
|
|
|
| |
(init_syntax_once): Call Fmake_char_table the new way.
Set up Qsyntax_table.
(Fsyntax_table_p): Check the `purpose' field.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
(Fmodify_syntax_entry, init_syntax_once): Use SET_RAW_SYNTAX_ENTRY.
Handle new syntax-table data format.
(check_syntax_table): Use CHECK_CHAR_TABLE. Now static.
Don't return anything; callers changed.
(Fcopy_syntax_table): Use Fcopy_sequence.
(Fchar_syntax, Fmatching_paren, Fforward_comment): Copy complex args
to SYNTAX into variables before using them.
(Fsyntax_table_p): Accept any char-table.
(syntax_parent_lookup): New function.
(syntax_temp): New variable.
|
| | |
|
| |
|
|
| |
in the starting state for tracking when we reach TARGETDEPTH.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
do notice a 2-char comment ender that straddles FROM.
|
| | |
|
| | |
|
| |
|
|
| |
Don't use XFASTINT as an lvalue.
|
| | |
|
| |
|
|
| |
single-char comment end going forward.
|
| |
|
|
| |
a comment, ignore a comment-starter that overlaps the comment-ender.
|
| | |
|
| |
|
|
| |
(Fchar_syntax): Pass arg directly to SYNTAX, no masking.
|
| | |
|
| | |
|