From: Tony Tung <tonytung@merly.org>
Subject: javascript using java-mode
Date: Thu, 1 Dec 2005 11:37:47 -0800 [thread overview]
Message-ID: <A5697ED8-3533-4E11-91A1-E699C2E2C55C@merly.org> (raw)
Hi,
I've been using java-mode to edit javascript, and it works great for
the most part. There is one quirk I was hoping someone could help me
with. In javascript, you are allowed to pass associative arrays as
arguments, like:
foo( i, j,
{"a": 1,
"b": 2} );
cc-mode and friends does not parse the statement as I hoped it
would. If the cursor is at i or j, then c-show-syntactic-information
yields ((statement xxxx)). If it is at "b", then c-show-syntactic-
information yields ((defun-block-intro xxxx) (statement-cont yyyy)).
Is it possible to get cc-mode to treat it like a brace-list?
Thanks!
next reply other threads:[~2005-12-01 19:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-01 19:37 Tony Tung [this message]
[not found] <mailman.17540.1133474098.20277.help-gnu-emacs@gnu.org>
2005-12-02 13:09 ` javascript using java-mode Colin S. Miller
2005-12-02 15:08 ` Lennart Borgman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A5697ED8-3533-4E11-91A1-E699C2E2C55C@merly.org \
--to=tonytung@merly.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).