Sha256: 3f65c2a0c03f3c0c57b594d388ca7dfbbd70f7259a6db8580d5fb6d3c018ff3c

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

# Copyright: 2016 Masatake YAMATO
# License: GPL-2

CTAGS=$1

echo "#"
echo "# JUST LONG NAME"
echo "#"
${CTAGS} --quiet --options=NONE \
	 -x \
	 --_xformat="%10N %10{sectionMarker}" \
	 input.rst

echo "#"
echo "# LANG, LONG NAME"
echo "#"
${CTAGS} --quiet --options=NONE \
	 -x \
	 --_xformat="%10N %10{reStructuredText.sectionMarker}" \
	 input.rst

echo "#"
echo "# WILDCARD, LONG NAME"
echo "#"
${CTAGS} --quiet --options=NONE \
	 -x \
	 --_xformat="%10N %10{*.sectionMarker}" \
	 input.rst

echo "#"
echo "# WRONG LANGUAGE"
echo "#"
${CTAGS} --quiet --options=NONE \
	 -x \
	 --_xformat="%10N %10{NOSUCHLANG.sectionMarker}" \
	 input.rst

echo "#"
echo "# WRONG FIELD"
echo "#"
${CTAGS} --quiet --options=NONE \
	 -x \
	 --_xformat="%10N %10{NOSUCHFIELD}" \
	 input.rst

echo "#"
echo "# ENABLING COMMON FIELD BY SPECIFYING WILDCARD"
echo "#"
${CTAGS} --quiet --options=NONE \
	 -x \
	 --_xformat="%10N %10{*.language}" \
	 input.rst

echo "#"
echo "# LIST: ENABLING COMMON FIELD BY SPECIFYING WILDCARD"
echo "#"
${CTAGS} --quiet --options=NONE \
	 -x \
	 --_xformat="%10N %10{*.language}" \
	 --list-fields | grep language


exit $?

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ctags.rb-1.1.4 ext/vendor/ctags/Tmain/xformat-and-parser-own-field.d/run.sh
ctags.rb-1.1.3 ext/vendor/ctags/Tmain/xformat-and-parser-own-field.d/run.sh