aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-01-22 10:19:53 +1100
committerNeil <nyamatongwe@gmail.com>2020-01-22 10:19:53 +1100
commit455e439cec7d89c9d5b928d4dfc970c3e0c7f543 (patch)
treed47be5d58619afcbecb58205dfccf7440f85e636
parent2d5fb901c74d3da2339b2c711b82c9a34ba22d74 (diff)
downloadscintilla-mirror-455e439cec7d89c9d5b928d4dfc970c3e0c7f543.tar.gz
Adding test for makefile lexer.
-rw-r--r--lexilla/test/examples/makefile/SciTE.properties1
-rw-r--r--lexilla/test/examples/makefile/x.mak16
-rw-r--r--lexilla/test/examples/makefile/x.mak.styled16
3 files changed, 33 insertions, 0 deletions
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