aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorSimen Heggestøyl2017-10-13 21:48:12 +0200
committerSimen Heggestøyl2017-10-13 21:57:52 +0200
commitff330530123a9e3f6fbb2d0fe52564e4e3d78369 (patch)
tree917973bdabcaf3cde6f89871585510beb2c2f0b1 /lisp
parent8968be822ea864f383be75888e83bd92274fc520 (diff)
downloademacs-ff330530123a9e3f6fbb2d0fe52564e4e3d78369.tar.gz
emacs-ff330530123a9e3f6fbb2d0fe52564e4e3d78369.zip
Fix indentation bug in multi-line CSS selectors
* lisp/textmodes/css-mode.el (css--colon-inside-selector-p): Fix indentation of multi-line CSS selectors that include both a pseudo-class and parenthesis. * test/manual/indent/css-mode.css: Add test for the above change.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/css-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 9022ab7c3fb..39885c10860 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -1149,7 +1149,7 @@ This function is intended to be good enough to help SMIE during
1149tokenization, but should not be regarded as a reliable function 1149tokenization, but should not be regarded as a reliable function
1150for determining whether point is within a selector." 1150for determining whether point is within a selector."
1151 (save-excursion 1151 (save-excursion
1152 (re-search-forward "[{};)]" nil t) 1152 (re-search-forward "[{};]" nil t)
1153 (eq (char-before) ?\{))) 1153 (eq (char-before) ?\{)))
1154 1154
1155(defun css--colon-inside-funcall () 1155(defun css--colon-inside-funcall ()