Use more general #if

This commit is contained in:
Greg Sexton 2016-07-03 16:28:33 +01:00
parent f608e09be3
commit af481d2b42

View File

@ -167,8 +167,8 @@ position in the CONTENT."
(defun origami-c-macro-parser (create) (defun origami-c-macro-parser (create)
(lambda (content) (lambda (content)
(let ((positions (origami-get-positions content "#ifdef\\|#endif"))) (let ((positions (origami-get-positions content "#if\\|#endif")))
(origami-build-pair-tree create "#ifdef" "#endif" positions)))) (origami-build-pair-tree create "#if" "#endif" positions))))
(defun origami-c-parser (create) (defun origami-c-parser (create)
(let ((c-style (origami-c-style-parser create)) (let ((c-style (origami-c-style-parser create))