From 4c7846a01a694a8e61c4459ca6b2b8516492fcb0 Mon Sep 17 00:00:00 2001 From: Greg Sexton Date: Sat, 22 Nov 2014 21:57:01 +0000 Subject: [PATCH] Add out of the box support for js --- README.md | 1 + origami-parsers.el | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index f5752fe..2218f50 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ Probably not. Currently out of the box support is provided for: * C++ * Clojure * Java +* Javascript * Perl * elisp diff --git a/origami-parsers.el b/origami-parsers.el index 35b5ded..899fee9 100644 --- a/origami-parsers.el +++ b/origami-parsers.el @@ -36,7 +36,11 @@ '((java-mode . origami-c-style-parser) (c-mode . origami-c-style-parser) (c++-mode . origami-c-style-parser) + (perl-mode . origami-c-style-parser) (cperl-mode . origami-c-style-parser) + (js-mode . origami-c-style-parser) + (js2-mode . origami-c-style-parser) + (js3-mode . origami-c-style-parser) (emacs-lisp-mode . origami-elisp-parser) (lisp-interaction-mode . origami-elisp-parser) (clojure-mode . origami-clj-parser))