chromium: fix nix syntax highlighting for emacs
This commit is contained in:
parent
e79264002a
commit
d48846756f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user