From e81d69ad8e569744b71431390f5e0ee251158223 Mon Sep 17 00:00:00 2001 From: Greg Sexton Date: Sat, 25 Apr 2015 15:20:06 +0100 Subject: [PATCH] Add go and php to parsers alist --- README.md | 2 ++ origami-parsers.el | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 554d0f4..96ca418 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,8 @@ Probably not. Currently out of the box support is provided for: * Javascript * Perl * elisp +* Go +* PHP It should be trivial to add support for any language that uses braces to delimit blocks. Just add to `origami-parser-alist` something like: diff --git a/origami-parsers.el b/origami-parsers.el index 32e8ecc..57161d5 100644 --- a/origami-parsers.el +++ b/origami-parsers.el @@ -42,6 +42,8 @@ (js-mode . origami-c-style-parser) (js2-mode . origami-c-style-parser) (js3-mode . origami-c-style-parser) + (go-mode . origami-c-style-parser) + (php-mode . origami-c-style-parser) (emacs-lisp-mode . origami-elisp-parser) (lisp-interaction-mode . origami-elisp-parser) (clojure-mode . origami-clj-parser))