Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not decide if in a string or symbol by checking the face.

  • Loading branch information...
commit 9d52cf7010d6541a4a457cd19ef5f77bbe7cd385 1 parent a980c4b
@rejeep authored
Showing with 5 additions and 10 deletions.
  1. +5 −10 ruby-tools.el
View
15 ruby-tools.el
@@ -103,19 +103,14 @@
"Check if cursor is at a symbol or not."
(and
(not (ruby-tools-string-at-point-p))
- (or
- (memq 'font-lock-constant-face (text-properties-at (point)))
- (and
- (looking-at "[A-Za-z0-9_]+")
- (looking-back ":[A-Za-z0-9_]*")))))
+ (looking-at "[A-Za-z0-9_]+")
+ (looking-back ":[A-Za-z0-9_]*")))
(defun ruby-tools-string-at-point-p ()
"Check if cursor is at a string or not."
- (or
- (memq 'font-lock-string-face (text-properties-at (point)))
- (and
- (looking-at "[^\"']+['\"]")
- (looking-back "['\"][^\"']*"))))
+ (and
+ (looking-at "[^\"']+['\"]")
+ (looking-back "['\"][^\"']*")))
(defun ruby-tools-symbol-region ()
(list
Please sign in to comment.
Something went wrong with that request. Please try again.