diff options
author | Joost Kremers <joostkremers@fastmail.fm> | 2021-05-06 22:21:19 +0200 |
---|---|---|
committer | Joost Kremers <joostkremers@fastmail.fm> | 2021-05-06 22:21:19 +0200 |
commit | 95325085576c898493ad99be20a8aefce0af4664 (patch) | |
tree | 27fc42ff41e6ece00909a6a4e9042d2d057f5db2 /parsebib.el | |
parent | c4f0fb09db44e5c996d2bc72ef55194ac13d6874 (diff) |
Move define-error up in the file
Since the error is used in both formats, it should be defined in the general
section.
Diffstat (limited to 'parsebib.el')
-rw-r--r-- | parsebib.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parsebib.el b/parsebib.el index 34113db..08fcdb3 100644 --- a/parsebib.el +++ b/parsebib.el @@ -47,6 +47,8 @@ (require 'json) (defvar json-object-type))) +(define-error 'parsebib-entry-type-error "Illegal entry type" 'error) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; BibTeX / biblatex parser ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -174,8 +176,6 @@ target field is set to the symbol `none'.") (defconst parsebib--key-regexp "[^\"@\\#%',={} \t\n\f]+" "Regexp describing a licit key.") (defconst parsebib--entry-start "^[ \t]*@" "Regexp describing the start of an entry.") -(define-error 'parsebib-entry-type-error "Illegal entry type" 'error) - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; matching and parsing stuff ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |