;;
;; Copyright (C) 2009 Nikolaj Schumacher
;;
-;; This file is part of company 0.3.
+;; This file is part of company 0.4.3.
;;
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License
(defun company-grab-lisp-symbol ()
(let ((prefix (company-grab-symbol)))
- (unless (and (company-in-string-or-comment (- (point) (length prefix)))
- (/= (char-before (- (point) (length prefix))) ?`))
- prefix)))
+ (if prefix
+ (unless (and (company-in-string-or-comment)
+ (/= (char-before (- (point) (length prefix))) ?`))
+ prefix)
+ 'stop)))
(defun company-elisp-predicate (symbol)
(or (boundp symbol)
(defvar company-elisp-binding-regexp
(concat "([ \t\n]*\\_<" (regexp-opt '("let" "defun" "defmacro" "defsubst"
- "lambda" "lexical-let"))
+ "lambda" "lexical-let" "flet" "labels"))
"\\*?")
"Regular expression matching sexps containing variable bindings.")