| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
(syntax_code_spec, syntax_spec_code): Add entry for @ and Sinherit.
|
| | |
|
| |
|
|
|
|
|
| |
after we reach beginning of a comment.
Check the SYNTAX_COMMENT_STYLE of a one-character comment ender.
(scan_lists): Check the SYNTAX_COMMENT_STYLE
of a one-character comment ender.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
to treat two-character comment enders with a special shortcut.
(scan_sexps_forward): Set state.comstart to before the
comment starter, not after.
|
| |
|
|
|
|
| |
to scan_sexps_forward.
(scan_sexps_forward, char_quoted): Now static.
(describe_syntax, describe_syntax_1): Now static.
|
| | |
|
| |
|
|
| |
with the proper number of arguments.
|
| | |
|
| |
|
|
|
|
|
| |
thus moving acros whitespace. When moving fwd, treat Sendcomment
as whitespace; likewise for Scomment when moving back.
(scan_sexps_forward): New arg COMMENTSTOP.
(Fparse_partial_sexp): Likewise.
|
| |
|
|
| |
Convert it to an int.
|