summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2013-05-31 12:52:10 +0900
committerDaiki Ueno <ueno@gnu.org>2013-05-31 14:01:16 +0900
commit48a930996645c508a5cadac066d3056070960cac (patch)
tree47086809d937b6033c8ff70bb063a82a02ba964b /gettext-tools
parent417f0080823ae17d0f258ec08f3810cd0274e021 (diff)
downloadexternal_gettext-48a930996645c508a5cadac066d3056070960cac.zip
external_gettext-48a930996645c508a5cadac066d3056070960cac.tar.gz
external_gettext-48a930996645c508a5cadac066d3056070960cac.tar.bz2
Minor cleanup of JavaScript support.
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/src/x-javascript.c12
-rw-r--r--gettext-tools/src/x-javascript.h4
2 files changed, 7 insertions, 9 deletions
diff --git a/gettext-tools/src/x-javascript.c b/gettext-tools/src/x-javascript.c
index 6542355..565d84f 100644
--- a/gettext-tools/src/x-javascript.c
+++ b/gettext-tools/src/x-javascript.c
@@ -1,5 +1,5 @@
/* xgettext JavaScript backend.
- Copyright (C) 2002-2003, 2005-2009 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2009, 2013 Free Software Foundation, Inc.
This file was written by Andreas Stricker <andy@knitter.ch>, 2010
It's based on x-python from Bruno Haible.
@@ -1310,7 +1310,6 @@ phase5_get (token_ty *tp)
/* Identify operators. The multiple character ones are simply ignored
* as they are recognized here and are otherwise not relevant. */
- /* FALLTHROUGH */
case '-': case '*': /* '+' and '/' are not listed here! */
case '%': case '<': case '>': case '=':
case '~': case '!': case '|': case '&': case '^':
@@ -1346,12 +1345,12 @@ phase5_get (token_ty *tp)
tp->type = last_token_type = token_type_comma;
return;
- case '[': case '{':
- tp->type = last_token_type = (c == '[' ? token_type_lbracket : token_type_other);
+ case '[':
+ tp->type = last_token_type = token_type_lbracket;
return;
- case ']': case '}':
- tp->type = last_token_type = (c == ']' ? token_type_rbracket : token_type_other);
+ case ']':
+ tp->type = last_token_type = token_type_rbracket;
return;
default:
@@ -1592,7 +1591,6 @@ extract_balanced (message_list_ty *mlp,
xgettext_current_source_encoding = xgettext_current_file_source_encoding;
return true;
- /* FALLTHROUGH */
case token_type_keyword:
case token_type_plus:
case token_type_regexp:
diff --git a/gettext-tools/src/x-javascript.h b/gettext-tools/src/x-javascript.h
index d668136..da40f71 100644
--- a/gettext-tools/src/x-javascript.h
+++ b/gettext-tools/src/x-javascript.h
@@ -1,5 +1,5 @@
-/* xgettext Python backend.
- Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
+/* xgettext JavaScript backend.
+ Copyright (C) 2002-2003, 2006, 2013 Free Software Foundation, Inc.
This file was written by Andreas Stricker <andy@knitter.ch>, 2010.
It's based on x-python from Bruno Haible.