[Top][All Lists]

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

Re: [elpa] master ba07fd7: New package: json-mode

From: Stefan Monnier
Subject: Re: [elpa] master ba07fd7: New package: json-mode
Date: Fri, 16 Dec 2016 13:33:00 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>> Would it make sense to inherit some things (such as the syntax-table)
>> from js-mode?
> JSON's syntax is a subset of the JavaScript syntax, so I think it would
> make sense.  On the other hand, the JSON syntax is very simple, and
> js-mode currently uses cc-mode to produce a syntax table which contains
> much more than json-mode needs, so maybe it's OK to just define what we
> need in json-mode.  What do you think?

I tend to prefer reusing another package's code, even if that other
package is "overkill" unless there's a reason to be worried about the
resource cost.

> Looks good to me. See the attached diff.

Sounds great, thanks,


reply via email to

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