lexer: New type enum token_type.
[pspp-builds.git] / src / language / utilities / title.c
index 8b8ac77c2ea0af0f0cdd5f13c5e9dcbfe4a2fe7b..a3d89b3cf25493c4431d6e753564b4e282bb1e2c 100644 (file)
@@ -52,10 +52,7 @@ cmd_subtitle (struct lexer *lexer, struct dataset *ds UNUSED)
 static int
 parse_title (struct lexer *lexer, enum text_item_type type)
 {
-  int c;
-
-  c = lex_look_ahead (lexer);
-  if (c == '"' || c == '\'')
+  if (lex_look_ahead (lexer) == T_STRING)
     {
       lex_get (lexer);
       if (!lex_force_string (lexer))