mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-25 15:00:45 -08:00
(init_syntax_once): Give most control chars' syntax Spunct.
This commit is contained in:
parent
dd73030d01
commit
aa7b08b445
1 changed files with 14 additions and 0 deletions
14
src/syntax.c
14
src/syntax.c
|
|
@ -3122,6 +3122,20 @@ init_syntax_once ()
|
|||
|
||||
Vstandard_syntax_table = Fmake_char_table (Qsyntax_table, temp);
|
||||
|
||||
/* Control characters should not be whitespace. */
|
||||
temp = XVECTOR (Vsyntax_code_object)->contents[(int) Spunct];
|
||||
for (i = 0; i <= ' ' - 1; i++)
|
||||
SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, i, temp);
|
||||
SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, 0177, temp);
|
||||
|
||||
/* Except that a few really are whitespace. */
|
||||
temp = XVECTOR (Vsyntax_code_object)->contents[(int) Swhitespace];
|
||||
SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, ' ', temp);
|
||||
SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, '\t', temp);
|
||||
SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, '\n', temp);
|
||||
SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, 015, temp);
|
||||
SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, 014, temp);
|
||||
|
||||
temp = XVECTOR (Vsyntax_code_object)->contents[(int) Sword];
|
||||
for (i = 'a'; i <= 'z'; i++)
|
||||
SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, i, temp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue