summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHorki <ivanzvonimirhorvat@gmail.com>2020-10-25 19:06:05 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-25 21:03:30 +0100
commit0a9744ac95d37b4c1bd7008e08ff5d269432e4aa (patch)
treee733e1715477b0718fe1a0e387db4cddda11894b
parent95954b7c57d117a13c49781e3eae9ddf989468a5 (diff)
add nix highligh
-rw-r--r--tests/syntax-tests/highlighted/nix/test.nix17
-rw-r--r--tests/syntax-tests/source/nix/test.nix17
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/nix/test.nix b/tests/syntax-tests/highlighted/nix/test.nix
new file mode 100644
index 00000000..b210bc63
--- /dev/null
+++ b/tests/syntax-tests/highlighted/nix/test.nix
@@ -0,0 +1,17 @@
+{ nixpkgs ? <nixpkgs>
+, nixpkgs' ? import nixpkgs {}}: with nixpkgs';
+
+# some comment
+stdenv.mkDerivation rec {
+ pname = "test";
+ version = "0.2.3";
+ name = "${pname}-${version}";
+
+ src = ./;
+
+ buildInputs = {
+ gzip
+ bzip2
+ python27
+ };
+}
diff --git a/tests/syntax-tests/source/nix/test.nix b/tests/syntax-tests/source/nix/test.nix
new file mode 100644
index 00000000..e6fed002
--- /dev/null
+++ b/tests/syntax-tests/source/nix/test.nix
@@ -0,0 +1,17 @@
+{ nixpkgs ? <nixpkgs>
+, nixpkgs' ? import nixpkgs {}}: with nixpkgs';
+
+# some comment
+stdenv.mkDerivation rec {
+ pname = "test";
+ version = "0.2.3";
+ name = "${pname}-${version}";
+
+ src = ./;
+
+ buildInputs = {
+ gzip
+ bzip2
+ python27
+ };
+} \ No newline at end of file