diff --git a/.hgignore b/.hgignore
index 3233d6316..31a5b2894 100644
--- a/.hgignore
+++ b/.hgignore
@@ -1 +1,3 @@
+syntax: glob
 youtube-dl-old
+.*.swp