[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
espresso-fix-json-indent-deniz.patch
Description: Binary data
- [PATCH] espresso-mode breaks on JSON input,
Deniz Dogan <=