Last active
August 29, 2015 14:05
-
-
Save danlamanna/be3ad17f72befe1b7b46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( ' | |
| ;; with cursor directly after single quote: | |
| (looking-back "add_\\(action\\|filter\\)([[:space:]]?+\\('\\|\"\\)") => t | |
| (match-string 0 "add_\\(action\\|filter\\)([[:space:]]?+\\('\\|\"\\)") => "add_\\(ac" ;; expects whole string | |
| (match-string 1 "add_\\(action\\|filter\\)([[:space:]]?+\\('\\|\"\\)") => nil ;; expects action or filter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment