From 907b5fed58d53bbb5e25c590df97f01a0ac93733 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 8 Nov 2009 10:08:52 +0200 Subject: Implement option documentation support in frontend --- tests/parser/makefile | 2 +- tests/parser/test-006.cli | 16 ++++++++++++++++ tests/parser/test-006.std | 0 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/parser/test-006.cli create mode 100644 tests/parser/test-006.std (limited to 'tests') diff --git a/tests/parser/makefile b/tests/parser/makefile index c64e496..2d435b4 100644 --- a/tests/parser/makefile +++ b/tests/parser/makefile @@ -7,7 +7,7 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make cxx_tun := driver.cxx -tests := 000 001 002 003 004 005 +tests := 000 001 002 003 004 005 006 # # diff --git a/tests/parser/test-006.cli b/tests/parser/test-006.cli new file mode 100644 index 0000000..5b555e4 --- /dev/null +++ b/tests/parser/test-006.cli @@ -0,0 +1,16 @@ +// option-doc +// +class c +{ + bool --help | -h {"Help me"}; + + int --comp = 5 + { + "", + "Set compression level", + "Set compression level to . + + The minimum value for this options is 0 and + maximum is 9." + }; +}; diff --git a/tests/parser/test-006.std b/tests/parser/test-006.std new file mode 100644 index 0000000..e69de29 -- cgit v1.1