summaryrefslogtreecommitdiff
path: root/src/cr-tknzr.c
diff options
context:
space:
mode:
authorBenjamin Dauvergne <feanor@tol-eressea.org>2007-01-09 16:43:14 +0000
committerDom Lachowicz <doml@src.gnome.org>2007-01-09 16:43:14 +0000
commit33a38c78bf2d50bb4cb9d6335c7908bfb6db39eb (patch)
tree9dcfdfbb200a645137f7d9ee5675d86ea01678ed /src/cr-tknzr.c
parente5c3f76501ef671c8ae39fcefd23595995066218 (diff)
downloadlibcroco-33a38c78bf2d50bb4cb9d6335c7908bfb6db39eb.tar.gz
Bug 394680 - problem parsing function name starting w\ ith 'u' or 'r'
2007-01-09 Benjamin Dauvergne <feanor@tol-eressea.org> * src/cr-tknzr.c: Bug 394680 - problem parsing function name starting w\ ith 'u' or 'r' svn path=/trunk/; revision=303
Diffstat (limited to 'src/cr-tknzr.c')
-rw-r--r--src/cr-tknzr.c28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/cr-tknzr.c b/src/cr-tknzr.c
index 63c4da2..bd6f92d 100644
--- a/src/cr-tknzr.c
+++ b/src/cr-tknzr.c
@@ -2120,18 +2120,8 @@ cr_tknzr_get_next_token (CRTknzr * a_this, CRToken ** a_tk)
}
goto done;
}
- } else {
- status = cr_tknzr_parse_ident (a_this, &str);
- if (status == CR_OK && str) {
- status = cr_token_set_ident (token, str);
- CHECK_PARSING_STATUS (status, TRUE);
- if (str) {
- cr_parsing_location_copy (&token->location,
- &str->location) ;
- }
- goto done;
- }
- }
+ }
+ goto fallback;
break;
case 'r':
@@ -2150,19 +2140,8 @@ cr_tknzr_get_next_token (CRTknzr * a_this, CRToken ** a_tk)
goto done;
}
- } else {
- status = cr_tknzr_parse_ident (a_this, &str);
- if (status == CR_OK) {
- status = cr_token_set_ident (token, str);
- CHECK_PARSING_STATUS (status, TRUE);
- if (str) {
- cr_parsing_location_copy (&token->location,
- &str->location) ;
- }
- str = NULL;
- goto done;
- }
}
+ goto fallback;
break;
case '<':
@@ -2553,6 +2532,7 @@ cr_tknzr_get_next_token (CRTknzr * a_this, CRToken ** a_tk)
break;
default:
+ fallback:
/*process the fallback cases here */
if (next_char == '\\'