summaryrefslogtreecommitdiff
path: root/tests/lexers/make/example4.txt
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2021-01-18 21:24:00 +0100
committerGeorg Brandl <georg@python.org>2021-01-18 22:08:36 +0100
commit2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch)
tree809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/make/example4.txt
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-examplefiles.tar.gz
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/make/example4.txt')
-rw-r--r--tests/lexers/make/example4.txt126
1 files changed, 126 insertions, 0 deletions
diff --git a/tests/lexers/make/example4.txt b/tests/lexers/make/example4.txt
new file mode 100644
index 00000000..6f6c1808
--- /dev/null
+++ b/tests/lexers/make/example4.txt
@@ -0,0 +1,126 @@
+---input---
+vpath %.c src
+vpath %.h header
+EXEC=hello
+SRC= hello.c main.c
+OBJ= $(SRC:.c=.o)
+
+all: $(EXEC)
+
+hello: $(OBJ)
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+main.o: hello.h
+
+%.o: %.c
+ $(CC) -I header -o $@ \
+ -c $< $(CFLAGS)
+
+---tokens---
+'vpath %.c src\n' Comment.Preproc
+
+'vpath %.h header\n' Comment.Preproc
+
+'EXEC' Name.Variable
+'=' Operator
+'hello' Text
+'\n' Text
+
+'SRC' Name.Variable
+'=' Operator
+' ' Text
+'hello.c' Text
+' ' Text
+'main.c' Text
+'\n' Text
+
+'OBJ' Name.Variable
+'=' Operator
+' ' Text
+'$(' Keyword
+'SRC:.c' Text
+'=' Operator
+'.o' Text
+')' Keyword
+'\n' Text
+
+'\n' Text
+
+'all' Name.Function
+':' Operator
+' ' Text
+'$(' Keyword
+'EXEC' Name.Variable
+')' Keyword
+'\n' Text
+
+'\n' Text
+
+'hello' Name.Function
+':' Operator
+' ' Text
+'$(' Keyword
+'OBJ' Name.Variable
+')' Keyword
+'\n' Text
+
+' ' Text
+'$(' Keyword
+'CC' Text
+')' Keyword
+' ' Text
+'-o' Text
+' ' Text
+'$@' Name.Variable
+' ' Text
+'$' Text
+'^' Text
+' ' Text
+'$(' Keyword
+'LDFLAGS' Text
+')' Keyword
+'\n\n' Text
+
+'main.o' Name.Function
+':' Operator
+' ' Text
+'hello' Name
+'.' Text
+'h' Name
+'\n' Text
+
+'\n' Text
+
+'%.o' Name.Function
+':' Operator
+' ' Text
+'%' Text
+'.' Text
+'c' Name
+'\n' Text
+
+' ' Text
+'$(' Keyword
+'CC' Text
+')' Keyword
+' ' Text
+'-I' Text
+' ' Text
+'header' Text
+' ' Text
+'-o' Text
+' ' Text
+'$@' Name.Variable
+' ' Text
+'\\\n' Literal.String.Escape
+
+' ' Text
+'-c' Text
+' ' Text
+'$' Text
+'<' Text
+' ' Text
+'$(' Keyword
+'CFLAGS' Text
+')' Keyword
+'\n' Text