[Top][All Lists]

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

[PATCH] espresso-mode breaks on JSON input

From: Deniz Dogan
Subject: [PATCH] espresso-mode breaks on JSON input
Date: Sat, 12 Sep 2009 01:19:05 +0200

(N.B. I'm not sure if this patch belongs here.)

Using a buffer with the following contents (JSON), espresso-mode would
break telling me it expected a number or marker but got nil whenever I
tried to indent the region. I put together a patch which effectively
indents it correctly and doesn't report an error. It basically checks
that (char-before) is non-nil before comparing it to ?\).

     "pk": 2,
  "fields": {
          "url": "http://abc.go.com/";,
       "name": "ABC"

Attached is the patch. I'm not sure about the format, but I hope it can be used.

Deniz Dogan

Attachment: espresso-fix-json-indent-deniz.patch
Description: Binary data

reply via email to

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