origami.el icon indicating copy to clipboard operation
origami.el copied to clipboard

please add javadoc-style folding to c-mode folding

Open bymoz089 opened this issue 7 years ago • 0 comments

Please enable javadoc folding in c-mode. To do this change origami-c-parser function in file origami-parsers.el to following code:

(defun origami-c-parser (create)
	(let ((c-style (origami-c-style-parser create))
		  (macros (origami-c-macro-parser create))
		  (javadoc (origami-javadoc-parser create)))
		(lambda (content)
			(origami-fold-children
			 (origami-fold-shallow-merge
			  (origami-fold-shallow-merge
			   (origami-fold-root-node (funcall c-style content))
			   (origami-fold-root-node (funcall javadoc content)))
			  (origami-fold-root-node (funcall macros content)))))))

bymoz089 avatar Feb 14 '18 21:02 bymoz089