Cleaner regex

ご主人様
not manx 4 years ago
parent a7792086db
commit b9d0995b17
Signed by: C-xC-c
GPG Key ID: F52ED472284EF2F4

@ -29,7 +29,6 @@
;; Thanks to nginx-mode where I stole most of this.
;;; Code:
(defvar package.use-mode-syntax-table
(let ((table (make-syntax-table)))
(modify-syntax-entry ?# "< b" table)
@ -40,11 +39,15 @@
(defvar package.use--version-bit
(rx line-start (? (or "=" ">" "<" ">=" "<="))))
(defconst package.use--characters
`(1+ (any alnum "_" "." "+" "*" "-"))
"The characters allowed in a package.use catagory or name bit.")
(defvar package.use--catagory-bit
(rx (1+ (any alnum "_" "." "+" "*" "-")) "/"))
(rx (eval package.use--characters) "/"))
(defvar package.use--name-bit
(rx (group (1+ (any alnum "_" "." "+" "*" "-")))))
(rx (group (eval package.use--characters))))
(defvar package.use-font-lock-keywords
(list

Loading…
Cancel
Save