js2-mode

Improved JavaScript editing mode for GNU Emacs

  • 所有者: mooz/js2-mode
  • 平台:
  • 許可證: GNU General Public License v3.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

About Build Status MELPA

Improved JavaScript editing mode for GNU Emacs (description here).

For some of the latest changes, see latest user-visible changes.

Installation

The stable versions are hosted at GNU ELPA
(M-x list-packages).

You can also install the latest development version from
MELPA.

Requirements

Emacs 24.1+ and cl-lib (either built-in or installed from GNU ELPA).

React and JSX

The currently recommended solution is to install Emacs 27 (still in
development, you can build from
source

or e.g. install a snapshot from a
PPA) and
use js-mode as the major mode. To make use of the JS2 AST and the
packages that integrate with it, we recommend js2-minor-mode. See
the corresponding instructions in the
Commentary
.

js-mode in Emacs 27 includes full support for syntax highlighting
and indenting of JSX syntax.

rjsx-mode is an
alternative option which comes with certain tradeoffs.

Bugs

  • See broken syntax highlighting and timer errors? Recently upgraded
    Emacs from version 24.2 or earlier? Try
    reinstalling or byte-recompiling
    the package.

  • Any indentation problems should be reported with M-x report-emacs-bug
    (please try reproducing them with js-mode first, for clarity).
    Starting with Emacs 25, js2-mode delegates indentation to
    the indentation engine of js-mode.

Please report other problems at http://github.com/mooz/js2-mode/issues.

Contributing

js2-mode is subject to the same
copyright assignment
policy as Emacs itself, org-mode, CEDET and other packages in
GNU ELPA.

Any
legally significant
contributions can only be accepted after the author has completed their
paperwork. Please ask for the request form, and we'll send it to you.

See Also

Some third-party modes that use the generated syntax tree:

主要指標

概覽
名稱與所有者mooz/js2-mode
主編程語言Emacs Lisp
編程語言Emacs Lisp (語言數: 2)
平台
許可證GNU General Public License v3.0
所有者活动
創建於2010-03-15 10:04:34
推送於2024-12-05 01:40:12
最后一次提交2024-12-05 03:40:12
發布數17
最新版本名稱20231224 (發布於 )
第一版名稱20130619 (發布於 )
用户参与
星數1.3k
關注者數45
派生數181
提交數865
已啟用問題?
問題數434
打開的問題數61
拉請求數133
打開的拉請求數2
關閉的拉請求數37
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?