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
Open sidebar
emacs
emacs
Commits
c721eee5
Commit
c721eee5
authored
Dec 05, 2004
by
Richard M. Stallman
Browse files
(regex_compile): Fix end-of-pattern case for space.
parent
33b3f667
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/ChangeLog
src/ChangeLog
+4
-0
src/regex.c
src/regex.c
+2
-2
No files found.
src/ChangeLog
View file @
c721eee5
2004-12-05 Richard M. Stallman <rms@gnu.org>
* regex.c (regex_compile): Fix end-of-pattern case for space.
2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
...
...
src/regex.c
View file @
c721eee5
...
...
@@ -2558,8 +2558,8 @@ regex_compile (pattern, size, syntax, bufp)
}
/* If the spaces are followed by a repetition op,
treat them normally. */
if
(
p1
=
=
pend
||
(
*
p1
==
'*'
||
*
p1
==
'+'
||
*
p1
==
'?'
if
(
p1
!
=
pend
&&
(
*
p1
==
'*'
||
*
p1
==
'+'
||
*
p1
==
'?'
||
(
*
p1
==
'\\'
&&
p1
+
1
!=
pend
&&
p1
[
1
]
==
'{'
)))
goto
normal_char
;
...
...
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