xref: /Universal-ctags/optlib/passwd.ctags (revision 379bf2260064ee76571eceacf966c67ae1de06ac)
174facc33SMasatake YAMATO#
274facc33SMasatake YAMATO#  Copyright (c) 2016, 2017 Red Hat, Inc.
374facc33SMasatake YAMATO#  Copyright (c) 2016, 2017 Masatake YAMATO
474facc33SMasatake YAMATO#
574facc33SMasatake YAMATO#  Author: Masatake YAMATO <yamato@redhat.com>
674facc33SMasatake YAMATO#
774facc33SMasatake YAMATO# This program is free software; you can redistribute it and/or
874facc33SMasatake YAMATO# modify it under the terms of the GNU General Public License
974facc33SMasatake YAMATO# as published by the Free Software Foundation; either version 2
1074facc33SMasatake YAMATO# of the License, or (at your option) any later version.
1174facc33SMasatake YAMATO#
1274facc33SMasatake YAMATO# This program is distributed in the hope that it will be useful,
1374facc33SMasatake YAMATO# but WITHOUT ANY WARRANTY; without even the implied warranty of
1474facc33SMasatake YAMATO# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1574facc33SMasatake YAMATO# GNU General Public License for more details.
1674facc33SMasatake YAMATO#
1774facc33SMasatake YAMATO# You should have received a copy of the GNU General Public License
1874facc33SMasatake YAMATO# along with this program; if not, write to the Free Software
1974facc33SMasatake YAMATO# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
2074facc33SMasatake YAMATO# USA.
2174facc33SMasatake YAMATO
2274facc33SMasatake YAMATO#
2374facc33SMasatake YAMATO# This optlib is a testbed for --_fielddef option and _field regex flag.
2474facc33SMasatake YAMATO#
2574facc33SMasatake YAMATO
266b1ec470SMasatake YAMATO--langdef=Passwd
276b1ec470SMasatake YAMATO--map-Passwd=+(passwd)
28*379bf226SMasatake YAMATO--kinddef-Passwd=u,username,user names
296b1ec470SMasatake YAMATO--_fielddef-Passwd=home,home directory
306b1ec470SMasatake YAMATO--_fielddef-Passwd=shell,login shell
316b1ec470SMasatake YAMATO--fields-Passwd=+{home}
326b1ec470SMasatake YAMATO--fields-Passwd=+{shell}
33*379bf226SMasatake YAMATO--regex-Passwd=/^([^:]+):([^:]+):([^:]+):([^:]+):([^:]*):([^:]+):([^:]+)/\1/u/{_field=home:\6}{_field=shell:\7}
34