Avoid overriding the user's 'rx macro

This commit is contained in:
Nathan Lovato
2020-03-25 07:31:44 -06:00
parent 7d2ed510c1
commit 475cc6b8d2

View File

@@ -1159,7 +1159,7 @@ For extending the `rx' notation in FORM, use `gdscript-rx-define' or `gdscript-r
;;;###autoload
(defmacro rx (&rest regexps)
(defmacro gdscript-rx-build-rx (&rest regexps)
"Translate regex REGEXPS in sexp form to a regexp string.
Each argument is one of the forms below; RX is a subform, and
RX... stands for zero or more RXs. For details, see Info
@@ -1481,7 +1481,7 @@ This variant of `rx' supports common Gdscript named REGEXPS."
(* ?\\ ?\\)
;; Match single or triple quotes of any kind.
(group (or "\"\"\"" "\"" "'''" "'")))))
(rx ,@regexps)))
(gdscript-rx-build-rx ,@regexps)))
(provide 'gdscript-rx)