Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Fixed variables declaration + improved items documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Pes committed Jul 4, 2018
1 parent cc47e0f commit 8abdbce
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions gendoxy.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

;; Copyright (C) 2018 Michele Pes

;; Author: Michele Pes <[email protected]>
;; Created: 21 June 2018
;; Keywords: gendoxy, docs, doxygen
;; Version: 1.0.2
;; Homepage: https://github.com/mp81ss/gendoxy
;; Author: Michele Pes <[email protected]>
;; Created: 04 July 2018
;; Keywords: gendoxy, docs, doxygen
;; Version: 1.0.4
;; Homepage: https://github.com/mp81ss/gendoxy

;; This file is not part of GNU Emacs.

Expand Down Expand Up @@ -70,6 +70,11 @@

;;; Change log:
;;
;; 1.0.4
;; Fixed some global variable statement
;; Fixed some typedef declarations statement
;; Improved items documentation

;; 1.0.3
;; Fixed enum/struct documentation
;;
Expand Down Expand Up @@ -264,12 +269,11 @@

(defun gendoxy-is-doc-line (current-line)
"Return t if line must end with documentation or nil"
(if (or (string-match (concat "[{}]" gendoxy-space-regex "*$")
current-line)
(string-match (concat "^" gendoxy-space-regex "*$")
current-line))
nil
t))
(and (not (string-match (concat "[{}]" gendoxy-space-regex "*$")
current-line))
(not (string-match (concat "^" gendoxy-space-regex "*$")
current-line))
(string-match gendoxy-c-id-regex current-line)))

(defun gendoxy-get-items-alignement (start index)
"Calculate alignement of items documentation"
Expand Down Expand Up @@ -409,7 +413,7 @@
(substring
statement 0 (string-match "[\\[=;]" statement)))) )
(if (and (string-match (concat "^\\(" gendoxy-c-id-regex
gendoxy-space-ptr-regex "\\)+"
gendoxy-space-ptr-regex "+\\)+"
gendoxy-c-id-regex "$")
stm)
(string-match (concat "\\(" gendoxy-c-id-regex "\\)$") stm))
Expand Down

0 comments on commit 8abdbce

Please sign in to comment.