From ea66709a853255c7957a8a7907fd21fa7f6cfd3f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 Sep 2015 15:56:54 +0200 Subject: Add support for quoting directive names Now only unquoted, literal names are recognized as directives, for example: 'print' = abc print $print --- tests/directive/buildfile | 8 ++++++++ tests/directive/test.out | 1 + tests/directive/test.sh | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 tests/directive/buildfile create mode 100644 tests/directive/test.out create mode 100755 tests/directive/test.sh (limited to 'tests/directive') diff --git a/tests/directive/buildfile b/tests/directive/buildfile new file mode 100644 index 0000000..0f83717 --- /dev/null +++ b/tests/directive/buildfile @@ -0,0 +1,8 @@ +"print" = a +'print' += b +pr"int" += c +print'' += d + +print $print + +./: diff --git a/tests/directive/test.out b/tests/directive/test.out new file mode 100644 index 0000000..8e13e46 --- /dev/null +++ b/tests/directive/test.out @@ -0,0 +1 @@ +a b c d diff --git a/tests/directive/test.sh b/tests/directive/test.sh new file mode 100755 index 0000000..b898b3c --- /dev/null +++ b/tests/directive/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +valgrind -q b -q | diff -u test.out - -- cgit v1.1