all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David De La Harpe Golden <david@harpegolden.net>
To: emacs-devel@gnu.org
Subject: Re: .json files - should they be associated with som Emacs mode by default?
Date: Sat, 14 Jan 2012 00:10:33 +0000	[thread overview]
Message-ID: <4F10C7F9.3060309@harpegolden.net> (raw)
In-Reply-To: <alpine.DEB.2.02.1201131632500.4372@localhost>

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	other threads:[~2012-01-14  0:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-13 11:25 .json files - should they be associated with som Emacs mode by default? Lennart Borgman
2012-01-13 13:32 ` Julien Danjou
2012-01-13 15:25   ` Lennart Borgman
2012-01-13 21:33 ` Tekk
2012-01-14  0:10   ` David De La Harpe Golden [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F10C7F9.3060309@harpegolden.net \
    --to=david@harpegolden.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.