Created
February 21, 2014 06:38
-
-
Save mgalgs/9129823 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
(defun is-array-def () | |
(save-excursion | |
(let (end-of-statement (save-excursion (search-forward ";"))) | |
;; it's an array if we find all of the following characters before | |
;; the next semi-colon: `[={'. Is that good enough?? | |
(and (re-search-forward "\\[" end-of-statement t) | |
(re-search-forward "=" end-of-statement t) | |
(re-search-forward "{" end-of-statement t))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fix is simple: need another set of parens around my let binding variables. DOH!