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