Author: trasz
Date: Thu Jun 18 10:17:47 2015
New Revision: 284542
URL: https://svnweb.freebsd.org/changeset/base/284542

Log:
  Allow '@' in unquoted strings, such as with the "path" statement.  Note
  that one can use any character they like by using double quotes.
  
  PR:           200895
  MFC after:    2 weeks
  Sponsored by: The FreeBSD Foundation

Modified:
  head/usr.sbin/ctld/token.l

Modified: head/usr.sbin/ctld/token.l
==============================================================================
--- head/usr.sbin/ctld/token.l  Thu Jun 18 09:39:51 2015        (r284541)
+++ head/usr.sbin/ctld/token.l  Thu Jun 18 10:17:47 2015        (r284542)
@@ -80,7 +80,7 @@ target                        { return TARGET; }
 timeout                        { return TIMEOUT; }
 \"[^"]+\"              { yylval.str = strndup(yytext + 1,
                            strlen(yytext) - 2); return STR; }
-[a-zA-Z0-9\.\-_/\:\[\]]+ { yylval.str = strdup(yytext); return STR; }
+[a-zA-Z0-9\.\-@_/\:\[\]]+ { yylval.str = strdup(yytext); return STR; }
 \{                     { return OPENING_BRACKET; }
 \}                     { return CLOSING_BRACKET; }
 #.*$                   /* ignore comments */;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to