aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fmodify_syntax_entry): Use macro STRING_BYTES to getKenichi Handa1998-06-231-2/+2
| | | | byte size of a string.
* (skip_chars): Don't examine STRING before verifying that it is a string.Richard M. Stallman1998-06-141-3/+5
| | | | (scan_lists): Use prev_char_comend_first, not ...comstart...
* (Fforward_comment): Properly compute BYTEPOS arg to char_quoted.Richard M. Stallman1998-06-111-3/+2
|
* (struct lisp_parse_state): New field, levelstarts.Richard M. Stallman1998-06-081-2/+21
| | | | | (scan_sexps_forward): Use 10th elt of STATE to set levelstarts. (parse-partial-sexp): Add 10th elt to return value.
* (scan_lists): Properly skip the comment-fence characterRichard M. Stallman1998-06-061-43/+88
| | | | | | | | | | | | 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.
* (skip_chars): Fix previous change.Kenichi Handa1998-05-181-9/+10
|
* (skip_chars): Fix bug in handling a range whichKenichi Handa1998-05-181-8/+20
| | | | contains multibyte characters.
* (skip_chars): When fetching char after \,Richard M. Stallman1998-05-131-3/+7
| | | | don't fail to set c_leading_code.
* (scan_lists, scan_sexps_forward): Move complex expressionsRichard M. Stallman1998-05-091-4/+17
| | | | outside of the switch statement.
* Fix -Wimplicit warnings.Andreas Schwab1998-04-141-0/+3
|
* (Fbackward_prefix_chars): Set point properly while scanning.Richard M. Stallman1998-03-181-17/+26
| | | | | | | (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.
* (update_syntax_table): Properly update `position' field of used intervals.Richard M. Stallman1998-03-021-0/+15
|
* (update_syntax_table): Fix calculations using offset.Karl Heuer1998-02-221-26/+26
| | | | (skip_chars): Fix loop termination condition.
* (skip_chars): Use INC_POS instead of INC_BOTH.Richard M. Stallman1998-02-161-34/+36
| | | | | | | | (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.
* (back_comment): Move the find_defun_start callRichard M. Stallman1998-01-251-4/+19
| | | | | | out of the scan_sexps_forward call. No need to call find_defun_start if we found the defun start in the initial scan.
* (skip_chars): Use unibyte_char_to_multibyte,Richard M. Stallman1998-01-211-5/+2
|
* (skip_chars): Fix test for end of string, looking for `-'.Karl Heuer1998-01-181-11/+16
| | | | | (back_comment): Don't allow quoting a comment-end. (scan_lists): Likewise.
* (skip_chars): Handle multibyte and unibyte stringsRichard M. Stallman1998-01-091-31/+57
| | | | for either kind of buffer. Scan string by bytes and chars.
* (scan_sexps_forward): Additional arg FROM_BYTE. Calls changed.Richard M. Stallman1998-01-011-494/+325
| | | | | | | | | | | | | | | | (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.
* (Fparse_partial_sexp): Return nil for 9th elementRichard M. Stallman1997-12-211-17/+19
| | | | whenever not inside a string or a comment.
* Comment and whitespace changes.Richard M. Stallman1997-12-211-21/+23
|
* (back_comment): Handle 2-char comment startsKarl Heuer1997-11-231-17/+12
| | | | when reaching the first of the pair.
* (skip_chars): Check type of `string' before using it.Karl Heuer1997-11-201-2/+2
|
* (Fforward_comment): When count1 is negative, return nil if FROM reaches STOP.Richard M. Stallman1997-07-241-1/+7
|
* (init_syntax_once): Convert Fmake_vector argument to Lisp_Integer.Richard M. Stallman1997-07-121-1/+1
|
* Fix bugs with inappropriate mixing of Lisp_Object with int.Richard M. Stallman1997-07-041-3/+3
|
* (scan_sexps_forward): Split up a complex if-test.Richard M. Stallman1997-06-291-4/+18
|
* (Fsyntax_table_p, check_syntax_table): Use EQ.Richard M. Stallman1997-06-021-6/+6
| | | | | (Fmodify_syntax_entry): Use XINT to access c. (describe_syntax): Use XINT to access first.
* (Fforward_comment): Handle unmatched two-character comment starters.Richard M. Stallman1997-05-311-0/+11
|
* (back_comment): Detect 2-char comment starts properly.Richard M. Stallman1997-05-311-9/+15
| | | | New arg COMSTYLE; callers changed.
* (describe_syntax_1): Pass new args to describe_vector.Richard M. Stallman1997-05-131-2/+3
|
* (skip_chars): Fix previous change in syntax/backward case.Richard M. Stallman1997-04-281-4/+8
|
* (skip_chars): Merge mule changes back in.Richard M. Stallman1997-04-251-20/+165
|
* Update copyright year.Richard M. Stallman1997-04-151-1/+1
|
* (SYNTAX_ENTRY_VIA_PROPERTY): Set to take `syntax-table'Richard M. Stallman1997-04-151-101/+783
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* (init_syntax_once): Add trick to avoid compiler warningKenichi Handa1997-02-281-3/+9
| | | | of "comparison is always 1 ...".
* (describe_syntax): Handle the case that the argumentKenichi Handa1997-02-271-0/+6
| | | | VALUE is char-table.
* Include charset.h and category.h.Karl Heuer1997-02-201-122/+226
| | | | | | | | | | | | | | | | | | (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.
* (scan_lists): Signal errors using scan-error.Richard M. Stallman1997-02-101-4/+26
| | | | (syms_of_syntax): Set up Qscan_error.
* Change all references from point to PT.Karl Heuer1996-09-011-2/+2
|
* (Fcopy_syntax_table): Set default to nil.Richard M. Stallman1996-02-241-1/+10
| | | | Set the parent only if it was nil.
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* (Fsyntax_table_p, Fchar_syntax, Fmatching_paren, Fmodify_syntax_entry):Erik Naggum1996-01-091-22/+23
| | | | Harmonize arguments with documentation.
* (check_syntax_table): Check the purpose slot.Richard M. Stallman1995-11-111-4/+9
| | | | | | Use Qsyntax_table_p for the error message. (Fmodify_syntax_entry): Don't fail to init MATCH.
* (Qsyntax_table): New variable.Richard M. Stallman1995-10-141-3/+17
| | | | | | (init_syntax_once): Call Fmake_char_table the new way. Set up Qsyntax_table. (Fsyntax_table_p): Check the `purpose' field.
* (describe_syntax): Handle new syntax-table data format.Richard M. Stallman1995-10-071-84/+147
| | | | | | | | | | | | | (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.
* (scan_sexps_forward): Fix previous change.Richard M. Stallman1995-08-191-2/+2
|
* (scan_sexps_forward): Use the initial depthRichard M. Stallman1995-08-161-2/+2
| | | | in the starting state for tracking when we reach TARGETDEPTH.
* (describe_syntax_1): Pass new arg to describe_vector.Karl Heuer1995-05-291-1/+1
|
* (scan_lists): Make stringterm an unsigned char.Karl Heuer1995-05-251-1/+1
|