chromium: fix nix syntax highlighting for emacs

This commit is contained in:
Herwig Hochleitner 2016-11-10 05:19:51 +01:00
parent e79264002a
commit d48846756f

View File

@ -64,7 +64,7 @@ in rec {
csv2nix = name: src: import (runCommand "${name}.nix" { csv2nix = name: src: import (runCommand "${name}.nix" {
src = builtins.fetchurl src; src = builtins.fetchurl src;
} '' } ''
esc() { echo "\"$(echo "$1" | sed -e 's/"\\$/\\&/')\""; } esc() { echo "\"$(echo "$1" | sed -e 's/"\\$/\\&/')\""; } # ohai emacs "
IFS=, read -r -a headings <<< "$(head -n1 "$src")" IFS=, read -r -a headings <<< "$(head -n1 "$src")"
echo "[" > "$out" echo "[" > "$out"
tail -n +2 "$src" | while IFS=, read -r -a line; do tail -n +2 "$src" | while IFS=, read -r -a line; do