Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
57951c2e
Commit
57951c2e
authored
Jan 06, 2004
by
Andreas Schwab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(skip_chars): Treat '-' at end of string as ordinary
character.
parent
2e3b4a0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
src/ChangeLog
src/ChangeLog
+5
-0
src/syntax.c
src/syntax.c
+8
-7
No files found.
src/ChangeLog
View file @
57951c2e
2004-01-06 Andreas Schwab <schwab@suse.de>
* syntax.c (skip_chars): Treat '-' at end of string as ordinary
character.
2004-01-02 Andreas Schwab <schwab@suse.de>
* macterm.c (emacs_options, x_initialized, same_x_server): Remove
...
...
src/syntax.c
View file @
57951c2e
/* GNU Emacs routines to deal with syntax tables; also word and list parsing.
Copyright (C) 1985, 87, 93, 94, 95, 97, 1998, 1999 Free Software Foundation, Inc.
Copyright (C) 1985, 87, 93, 94, 95, 97, 1998, 1999
, 2004
Free Software Foundation, Inc.
This file is part of GNU Emacs.
...
...
@@ -1442,10 +1442,13 @@ skip_chars (forwardp, syntaxp, string, lim)
if
(
i_byte
==
size_byte
)
break
;
c
=
STRING_CHAR_AND_LENGTH
(
str
+
i_byte
,
size_byte
-
i_byte
,
len
);
c
=
STRING_CHAR_AND_LENGTH
(
str
+
i_byte
,
size_byte
-
i_byte
,
len
);
i_byte
+=
len
;
}
if
(
i_byte
<
size_byte
/* Treat `-' as range character only if another character
follows. */
if
(
i_byte
+
1
<
size_byte
&&
str
[
i_byte
]
==
'-'
)
{
unsigned
int
c2
;
...
...
@@ -1453,11 +1456,9 @@ skip_chars (forwardp, syntaxp, string, lim)
/* Skip over the dash. */
i_byte
++
;
if
(
i_byte
==
size_byte
)
break
;
/* Get the end of the range. */
c2
=
STRING_CHAR_AND_LENGTH
(
str
+
i_byte
,
size_byte
-
i_byte
,
len
);
c2
=
STRING_CHAR_AND_LENGTH
(
str
+
i_byte
,
size_byte
-
i_byte
,
len
);
i_byte
+=
len
;
if
(
SINGLE_BYTE_CHAR_P
(
c
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment