* javascript using java-mode
@ 2005-12-01 19:37 Tony Tung
0 siblings, 0 replies; 3+ messages in thread
From: Tony Tung @ 2005-12-01 19:37 UTC (permalink / 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!
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.17540.1133474098.20277.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2005-12-02 15:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-01 19:37 javascript using java-mode Tony Tung
[not found] <mailman.17540.1133474098.20277.help-gnu-emacs@gnu.org>
2005-12-02 13:09 ` Colin S. Miller
2005-12-02 15:08 ` Lennart Borgman
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.