diff options
| author | Vibhav Pant | 2017-02-13 17:07:36 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2017-02-13 17:07:36 +0530 |
| commit | cb410433e069b5bb450193353c3fea8593a643a9 (patch) | |
| tree | d2f4269781b4841e5a0c27ec57a5a4fbcec386c0 /lisp/textmodes/css-mode.el | |
| parent | e742450427007cdde242c11380dfe32a950fab61 (diff) | |
| parent | 4b18ef7ba3dd8aae4f3c3bf931365ef7da883baf (diff) | |
| download | emacs-feature/byte-switch.tar.gz emacs-feature/byte-switch.zip | |
Merge branch 'master' into feature/byte-switchfeature/byte-switch
Diffstat (limited to 'lisp/textmodes/css-mode.el')
| -rw-r--r-- | lisp/textmodes/css-mode.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 19746c68e6a..cd86db639ab 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el | |||
| @@ -1190,8 +1190,10 @@ to look up will be substituted there." | |||
| 1190 | "A helper for `css-lookup-symbol' that finds the symbol at point. | 1190 | "A helper for `css-lookup-symbol' that finds the symbol at point. |
| 1191 | Returns the symbol, a string, or nil if none found." | 1191 | Returns the symbol, a string, or nil if none found." |
| 1192 | (save-excursion | 1192 | (save-excursion |
| 1193 | ;; Skip backward over a word first. | 1193 | ;; Skip any whitespace between the word and point. |
| 1194 | (skip-chars-backward "-[:alnum:] \t") | 1194 | (skip-chars-backward "- \t") |
| 1195 | ;; Skip backward over a word. | ||
| 1196 | (skip-chars-backward "-[:alnum:]") | ||
| 1195 | ;; Now skip ":" or "@" to see if it's a pseudo-element or at-id. | 1197 | ;; Now skip ":" or "@" to see if it's a pseudo-element or at-id. |
| 1196 | (skip-chars-backward "@:") | 1198 | (skip-chars-backward "@:") |
| 1197 | (if (looking-at css--mdn-symbol-regexp) | 1199 | (if (looking-at css--mdn-symbol-regexp) |