| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
describe_syntax, skip_chars): Remove unused variables.
(back_comment, forw_comment): Add braces to if-statement with
if-else as dependent statement.
|
| |
|
|
|
|
| |
of minibuffer_prompt_length.
|
|
|
|
| |
in both directions. Extend documentation.
|
|
|
|
|
|
| |
(Fforward_comment, scan_lists, scan_sexps_forward)
(Fparse_partial_sexp): Add support for nested comments.
(forw_comment): New subroutine used in them.
|
|
|
|
|
| |
backwards, stop in front of the prompt to prevent accidentially
moving into the read-only prompt.
|
| |
|
|
|
|
| |
non-nil.
|
|
|
|
|
| |
to set prev_from_syntax, above start of main loop.
At startinstring, check syntax when checking for a match.
|
| |
|
| |
|
|
|
|
| |
stuff before jumping into the loop.
|
|
|
|
| |
byte size of a string.
|
|
|
|
| |
(scan_lists): Use prev_char_comend_first, not ...comstart...
|
| |
|
|
|
|
|
| |
(scan_sexps_forward): Use 10th elt of STATE to set levelstarts.
(parse-partial-sexp): Add 10th elt to return value.
|
|
|
|
|
|
|
|
|
|
|
|
| |
that ends a comment, when moving forward.
(Fbackward_prefix_chars): Return immediately if point is at BEGV.
(prev_char_comend_first): New function.
(back_comment): Use that. Carefully update syntax table position
for each character that is fetched.
(Fforward_comment): Likewise.
(scan_lists): Likewise.
(prev_char_comstart_first): New function.
|
| |
|
|
|
|
| |
contains multibyte characters.
|
|
|
|
| |
don't fail to set c_leading_code.
|
|
|
|
| |
outside of the switch statement.
|
| |
|
|
|
|
|
|
|
| |
(scan_sexps_forward): Make INC_FROM do UPDATE_SYNTAX_TABLE_FORWARD.
Delete the explicit calls to UPDATE_SYNTAX_TABLE_FORWARD.
Also set prev_from_syntax (new local var). Test that in the loop,
instead of fetching syntax of the previous char.
|
| |
|
|
|
|
| |
(skip_chars): Fix loop termination condition.
|
|
|
|
|
|
|
|
| |
(Fforward_comment): Always use both FROM and FROM_BYTE to set point.
Use dec_bytepos not DEC_POS.
(scan_lists): Handle unibyte buffers when decrementing temp_pos.
(INC_FROM): Use INC_BOTH.
(inc_bytepos, dec_bytepos): In unibyte mode, just increment bytepos.
|
|
|
|
|
|
| |
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.
|