projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac94f1f
)
Fix parsing of negative numbers. Note that parsing of floating point numbers is...
author
David Schleef
<ds@schleef.org>
Thu, 31 Oct 2002 20:06:44 +0000
(20:06 +0000)
committer
David Schleef
<ds@schleef.org>
Thu, 31 Oct 2002 20:06:44 +0000
(20:06 +0000)
Original commit message from CVS:
Fix parsing of negative numbers. Note that parsing of floating point
numbers is broken in exponential form (1.0e6 or 1.0E6).
gst/parse/parse.l
patch
|
blob
|
history
diff --git
a/gst/parse/parse.l
b/gst/parse/parse.l
index
7cdc9c9
..
3b21d3e
100644
(file)
--- a/
gst/parse/parse.l
+++ b/
gst/parse/parse.l
@@
-17,8
+17,8
@@
#define YY_NO_UNPUT
%}
-_integer [[:digit:]]+
-_double [[:digit:]]+"."*[[:digit:]]*
+_integer [
-+]?[
[:digit:]]+
+_double [
-+]?[
[:digit:]]+"."*[[:digit:]]*
_number {_integer}|{_double}
_boolean "true"|"false"|"TRUE"|"FALSE"
_identifier [[:alpha:]][[:alnum:]\-_%:]*