emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .json files - should they be associated with som Emacs mode by defau


From: David De La Harpe Golden
Subject: Re: .json files - should they be associated with som Emacs mode by default?
Date: Sat, 14 Jan 2012 00:10:33 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16

On 13/01/12 21:33, Tekk wrote:


On Fri, 13 Jan 2012, Lennart Borgman wrote:

Maybe this is already done in Emacs 24?



javascript seems appropriate for this, since json is valid js


...but not necessarily vice-versa [1]. Perhaps there should be a strict json-mode. Currently you can open a .json file and emacs trunk, using javascript-mode, is okay with it having {a: 'b'}, say, when it should really be highlighting that as a json syntax error (unquoted key, single quoted value).


[1]
http://stackoverflow.com/questions/3975859/what-are-the-differences-between-json-and-javascript-object



reply via email to

[Prev in Thread] Current Thread [Next in Thread]