Support a -f option to load from a file, and # comments

This means '#!/usr/local/bin/jq -f' is now a sensible way
to start a file.

Closes #13
This commit is contained in:
Stephen Dolan committed 2012-10-22 19:18:30 +01:00
1 parent f2601ab4f0
commit 48fb7c61b3
2 files changed
+45 -3

No files matched your search

+2
View File
@@ -31,6 +31,8 @@
%%
"#"[^\r\n]* { /* comments */ }
"==" { return EQ; }
"as" { return AS; }
"def" { return DEF; }