;; They're "compiled", so extract the source.
(cadr font-lock-keywords)
font-lock-keywords))
- '(("$\\([0-9]+\\)"
+ '(("\\$\\([0-9]+\\)"
(0 font-lock-keyword-face)
(1 font-lock-string-face t))
- ("${\\([0-9]+\\):?"
+ ("\\${\\([0-9]+\\):?"
(0 font-lock-keyword-face)
(1 font-lock-warning-face t))
("\\(\\$(\\)" 1 font-lock-preprocessor-face)
(yas--protect-escapes)
;; Parse indent markers: `$>'.
(goto-char parse-start)
- (yas--indent-parse-create snippet)
+ (yas--indent-parse-create)
;; parse fields with {}
;;
(goto-char parse-start)
(zerop (current-column)))
(indent-to-column yas--indent-original-column)))
((eq yas-indent-line 'auto)
- (let ((end (set-marker (make-marker) (point-max))))
- (unless yas-also-auto-indent-first-line
- (forward-line 1))
- (yas--indent-region (line-beginning-position)
- (point-max)
- snippet))))))
+ (unless yas-also-auto-indent-first-line
+ (forward-line 1))
+ (yas--indent-region (line-beginning-position)
+ (point-max)
+ snippet)))))
(defun yas--collect-snippet-markers (snippet)
"Make a list of all the markers used by SNIPPET."
(set-marker-insertion-type marker nil)
marker))
-(defun yas--indent-parse-create (snippet)
- "Parse the \"$>\" indentation markers in SNIPPET."
+(defun yas--indent-parse-create ()
+ "Parse the \"$>\" indentation markers just inserted."
(setq yas--indent-markers ())
(while (search-forward "$>" nil t)
(delete-region (match-beginning 0) (match-end 0))
yas-after-exit-snippet-hook
yas-before-expand-snippet-hook
yas-buffer-local-condition
- yas-dont-activate
+ yas-dont-activate-functions
;; prompting functions
;;