Kenichi Handa
1ad6e4db01
(skip_chars): Fix for unibyte case.
2004-08-20 08:46:50 +00:00
Stefan Monnier
789f332078
(back_comment): Fixup globals in all cases.
2004-08-19 22:17:59 +00:00
Stefan Monnier
709a47ceff
(char_quoted): Mixup byte/char pos.
2004-08-19 19:00:58 +00:00
Stefan Monnier
4f55e211b4
(skip_chars): Remove unused labels fwd_unibyte_ok and back_unibyte_ok.
2004-06-30 19:34:49 +00:00
Kim F. Storm
b3bda4fdfd
(skip_chars): Only recognize [:class:] when it has the
...
proper format and class is a lower-case word.
2004-06-15 09:42:31 +00:00
Richard M. Stallman
a1bc88d455
Include regex.h.
...
(skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
If requested, make a list of classes, then check the scanned
chars for membership in them.
(in_classes): New function.
(Fskip_chars_forward): Doc fix.
2004-06-13 22:25:34 +00:00
Andreas Schwab
ab229fdd0d
(char_quoted): Avoid warning about undefined operation.
...
(find_defun_start): Likewise.
(scan_lists): Likewise.
(INC_FROM): Likewise.
(scan_sexps_forward): Likewise.
2004-06-13 15:28:55 +00:00
Juanma Barranquero
d7ee9fab39
(Fmodify_syntax_entry): Fix docstring.
2004-05-07 22:26:29 +00:00
Stefan Monnier
d0abdf7e83
(scan_lists): Simplify backward string scan.
...
Fix off-by-one boundary check for string and comment fences.
2004-04-13 21:45:13 +00:00
Andreas Schwab
57951c2efa
(skip_chars): Treat '-' at end of string as ordinary
...
character.
2004-01-06 16:11:00 +00:00
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Richard M. Stallman
29e16385d0
(Fforward_word): Argument changed to optional. Set default value to 1.
2003-08-17 00:25:17 +00:00
Richard M. Stallman
1fd1cc2fc2
(find_defun_start): When open_paren_in_column_0_is_defun_start,
...
return beginning of buffer.
2003-05-17 12:50:31 +00:00
Kenichi Handa
4e837cd04f
(skip_chars): Fix previous change.
2003-04-24 23:25:09 +00:00
Kenichi Handa
9af7511a2a
(skip_chars): Make the code faster by using the common
...
technique of *p, *stop, and *endp.
2003-04-24 01:28:43 +00:00
Stefan Monnier
d070eb221d
(back_comment): Only check nestedness of 2nd char if needed.
2003-02-25 01:36:23 +00:00
Juanma Barranquero
177c0ea743
Trailing whitespace deleted.
2003-02-04 14:56:31 +00:00
Dave Love
b222e4153c
(Fskip_chars_forward)
...
(open-paren-in-column-0-is-defun-start): Doc fix.
2003-01-31 15:39:48 +00:00
Dave Love
ddc447fcff
(scan_sexps_forward):
...
Declare all args (per C99).
2002-11-14 14:17:40 +00:00
Stefan Monnier
3ceb4629cf
(scan_sexps_forward): Undo last patch.
...
Use a more obvious fix: check eob before updating the syntax table.
2002-11-12 20:41:14 +00:00
Stefan Monnier
79bd6490a2
(scan_sexps_forward): Update syntax table before reading
...
a char rather than after so we don't update the table past eob.
2002-11-09 22:20:02 +00:00
Dave Love
ee648c1188
(Fforward_comment): Doc fix.
2002-10-30 19:17:31 +00:00
Juanma Barranquero
7d0393cf12
Fix typo in comment.
2002-10-18 10:09:43 +00:00
Stefan Monnier
240c43e89c
(scan_lists): Don't get fooled by a symbol ending with a backslash-quoted char.
...
(scan_lists, scan_sexps_forward): Pacify the compiler.
2002-10-14 04:44:24 +00:00
Ken Raeburn
2e567bd3ec
(Fstring_to_syntax, skip_chars): Treat Lisp string
...
contents as const.
2002-07-19 14:27:24 +00:00
Ken Raeburn
d5db40779d
Most uses of XSTRING combined with STRING_BYTES or indirection changed to
...
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Stefan Monnier
394e256115
(syms_of_syntax): Remove defsubr of Sdescribe_syntax.
...
(describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
2001-11-26 23:37:01 +00:00
Stefan Monnier
a395ef6aae
(describe_syntax): Add dummy arg.
...
(describe_syntax_1): Update call to describe_vector.
2001-11-19 22:47:32 +00:00
Stefan Monnier
62abe9cbe0
(describe_syntax): New wrapper.
...
(Finternal_describe_syntax_value): Rename from describe_syntax.
Don't insert space at front and \n at the end.
(syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
2001-11-02 23:27:02 +00:00
Pavel Janík
b782650360
Update usage of CHECK_ macros (remove unused second argument).
2001-11-02 20:46:55 +00:00
Stefan Monnier
2c9e190074
Fix comment ending.
2001-10-25 04:18:22 +00:00
Pavel Janík
a50a10a02d
(modify-syntax-entry): Fix argument names (use CHAR instead of C) and usage.
2001-10-23 12:01:58 +00:00
Pavel Janík
fdb82f9337
Change doc-string comments to new style' [w/doc:' keyword].
2001-10-20 20:56:10 +00:00
Stefan Monnier
bb0de08420
(update_syntax_table): Simplify.
...
(Fforward_comment): Don't skip quoted chars when going backward.
2001-10-12 01:37:54 +00:00
Stefan Monnier
e35f6ff793
Include keymap.h.
2001-10-10 16:05:21 +00:00
Richard M. Stallman
7cc80f0aef
Comment change.
2001-09-08 14:30:12 +00:00
Eli Zaretskii
db9f48c3ca
Fixed a typo in a comment.
2001-06-15 07:31:16 +00:00
Stefan Monnier
423e705d9c
(update_syntax_table): Check that oldi has the same
...
properties as old_prop before deciding not to invalidate.
2001-05-01 13:49:44 +00:00
Stefan Monnier
42ebfa3190
(scan_lists): Check that the right quote char has the
...
right Sstring syntax when jumping over strings.
(init_syntax_once): Use Smax rather than 13.
2000-12-09 20:17:59 +00:00
Kenichi Handa
7ae339a717
*** empty log message ***
2000-10-24 00:09:09 +00:00
Stefan Monnier
d671382e93
(describe_syntax): Add code for comment and string fences.
2000-10-15 22:12:01 +00:00
Stefan Monnier
c65adb44b0
(Fstring_to_syntax): New function extracted from Fmodify_syntax_entry.
...
(Fmodify_syntax_entry): Use it and document the ! and | fences.
(skip_chars, Fforward_comment): Remove unused variables.
(syms_of_syntax): Add defsubr for string-to-syntax.
2000-10-15 21:42:41 +00:00
Eli Zaretskii
ef6d59c99e
Fix wording in a comment.
2000-10-15 05:55:40 +00:00
Kenichi Handa
465cf84ccd
(skip_chars): Change the way of handling a range from unibyte char to
...
multibyte char.
2000-10-12 02:54:26 +00:00
Stefan Monnier
3f679f55a2
(prev_char_comstart_first): Remove.
...
(back_comment): Check two-char comment markers more carefully
to better handle overlapping cases like *//* or /* */* */ ...
Match nestedness of ender/starter.
2000-10-02 22:15:27 +00:00
Stefan Monnier
abf8a9ffcc
(forw_comment): Match nestedness of ender/starter.
...
(Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
2000-10-02 21:59:00 +00:00
Kenichi Handa
9690d0263a
(skip_chars): Handle negation correctly.
2000-09-28 01:42:31 +00:00
Stefan Monnier
f7c436c1c8
(back_comment): Detect cases where a comment-starter is
...
actually inside another comment as in: /* a // b */ c // d \n.
Make it clear that `comstart_pos' is unused for nested comments.
2000-08-27 17:44:59 +00:00
Kenichi Handa
e39091b6dd
* syntax.c (skip_chars): Fix previous change. Make the handling of
...
unibyte string consistent with that of regex search.
2000-08-07 05:57:08 +00:00
Kenichi Handa
82d497fc5c
(skip_chars): Fix handling of multibyte<->unibyte conversion.
2000-08-05 01:45:10 +00:00