all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

* Re: javascript using java-mode
       [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
  0 siblings, 1 reply; 3+ messages in thread
From: Colin S. Miller @ 2005-12-02 13:09 UTC (permalink / raw)


Tony Tung wrote:
> 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.  

Is there a reason why you aren't using javascript-mode ?

Colin S. Miller


-- 
Replace the obvious in my email address with the first three letters of the hostname to reply.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: javascript using java-mode
  2005-12-02 13:09 ` Colin S. Miller
@ 2005-12-02 15:08   ` Lennart Borgman
  0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2005-12-02 15:08 UTC (permalink / raw)
  Cc: help-gnu-emacs

Colin S. Miller wrote:

> Tony Tung wrote:
>
>> 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.  
>
>
> Is there a reason why you aren't using javascript-mode ?
>
> Colin S. Miller

Or ecmascript-mode.el? See 
http://www.emacswiki.org/cgi-bin/wiki/ECMAScriptMode

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