unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* 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

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 --
     [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
2005-12-01 19:37 Tony Tung

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).