Fix indentation rule in css-mode
* lisp/textmodes/css-mode.el (css-smie-rules): Fix indentation of brackets in presence of pseudo-selectors. (Bug#21328)
This commit is contained in:
parent
fdd095d2fd
commit
c6af816aff
2 changed files with 6 additions and 1 deletions
|
@ -344,7 +344,7 @@
|
|||
(`(:elem . arg) 0)
|
||||
(`(:list-intro . ,(or `";" `"")) t) ;"" stands for BOB (bug#15467).
|
||||
(`(:before . "{")
|
||||
(when (smie-rule-hanging-p)
|
||||
(when (or (smie-rule-hanging-p) (smie-rule-bolp))
|
||||
(smie-backward-sexp ";")
|
||||
(smie-indent-virtual)))
|
||||
(`(:before . ,(or "{" "("))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue