Skip to content

Commit

Permalink
contrib/cfengine.el: minor regex improvement for the macro syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tzz committed Jun 28, 2015
1 parent 8346b8b commit 5b20ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/cfengine.el
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ This includes those for cfservd as well as cfagent.")
)
"Regexp matching full defun declaration (excluding argument list).")

(defconst cfengine3-macro-regex "\\(@.+\\)")
(defconst cfengine3-macro-regex "\\(@[a-zA-Z].+\\)")

(defconst cfengine3-class-selector-regex "\\([\"']?[[:alnum:]_().$&|!:]+[\"']?\\)::")

Expand Down

0 comments on commit 5b20ac5

Please sign in to comment.