From 809ac2f3f871d14509f5ac87d196e75aef1c369e Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Wed, 17 Aug 2011 23:54:56 -0400 Subject: [PATCH] highlight JSON with js mode --HG-- branch : pmacs2 --- mode/javascript.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mode/javascript.py b/mode/javascript.py index 99088e8..99d1087 100644 --- a/mode/javascript.py +++ b/mode/javascript.py @@ -113,11 +113,11 @@ class RhinoLoadFile(RhinoStart): class JavascriptTagManager(TagManager): lang = 'Javascript' - exts = set(('.js',)) + exts = set(('.js', '.json')) class Javascript(Fundamental): name = 'Javascript' - extensions = ['.js'] + extensions = ['.js', '.json'] grammar = JavascriptGrammar tabbercls = JavascriptTabber2 tagcls = JavascriptTagManager