From 455e439cec7d89c9d5b928d4dfc970c3e0c7f543 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 22 Jan 2020 10:19:53 +1100 Subject: Adding test for makefile lexer. --- lexilla/test/examples/makefile/SciTE.properties | 1 + lexilla/test/examples/makefile/x.mak | 16 ++++++++++++++++ lexilla/test/examples/makefile/x.mak.styled | 16 ++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 lexilla/test/examples/makefile/SciTE.properties create mode 100644 lexilla/test/examples/makefile/x.mak create mode 100644 lexilla/test/examples/makefile/x.mak.styled (limited to 'lexilla/test/examples/makefile') diff --git a/lexilla/test/examples/makefile/SciTE.properties b/lexilla/test/examples/makefile/SciTE.properties new file mode 100644 index 000000000..ddc87920e --- /dev/null +++ b/lexilla/test/examples/makefile/SciTE.properties @@ -0,0 +1 @@ +lexer.*.mak=makefile diff --git a/lexilla/test/examples/makefile/x.mak b/lexilla/test/examples/makefile/x.mak new file mode 100644 index 000000000..d5bdb83e9 --- /dev/null +++ b/lexilla/test/examples/makefile/x.mak @@ -0,0 +1,16 @@ +# '# comment' comment=1 +# comment + +# '.SUFFIXES' target=5, ':' operator=4 +.SUFFIXES: + +# 'LD' identifier=3, '=' operator=4, 'link' default=0 +LD=link + +# '!IFDEF DEBUG' preprocessor=2 +!IFDEF DEBUG + +# '$(' ID EOL=9 +X=$( + +# End of file diff --git a/lexilla/test/examples/makefile/x.mak.styled b/lexilla/test/examples/makefile/x.mak.styled new file mode 100644 index 000000000..752ed5884 --- /dev/null +++ b/lexilla/test/examples/makefile/x.mak.styled @@ -0,0 +1,16 @@ +{1}# '# comment' comment=1 +# comment +{0} +{1}# '.SUFFIXES' target=5, ':' operator=4 +{5}.SUFFIXES{4}:{0} + +{1}# 'LD' identifier=3, '=' operator=4, 'link' default=0 +{3}LD{4}={0}link + +{1}# '!IFDEF DEBUG' preprocessor=2 +{2}!IFDEF DEBUG +{0} +{1}# '$(' ID EOL=9 +{3}X{4}={9}$( +{0} +{1}# End of file -- cgit v1.2.3