Skip to content

Commit

Permalink
Support for quoted js object properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
magnars committed Dec 14, 2011
1 parent 081a1d1 commit 36d336f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js-mode-expansions.el
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@
"Mark js-object-property presumes that point is at the assignment part of key: value.
If point is inside the value, that will be marked first anyway."
(interactive)
(when (or (looking-at "\\(\\s_\\|\\sw\\)*:")
(when (or (looking-at "\"?\\(\\s_\\|\\sw\\| \\)*\":")
(looking-at "\\(\\s_\\|\\sw\\)*:")
(looking-back ": ?"))
(search-backward-regexp "[{,]")
(forward-char)
Expand Down

0 comments on commit 36d336f

Please sign in to comment.