mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
[language-html] Fix indentation after self-closing tags
This commit is contained in:
parent
c188a26730
commit
cc20d7055d
@ -1,7 +1,7 @@
|
||||
|
||||
((start_tag) @indent
|
||||
; Only indent if this isn't a self-closing tag.
|
||||
(#not-match? @indent "^<(?:area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\s"))
|
||||
(#not-match? @indent "^<(?:area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)(?=\\s|>)"))
|
||||
|
||||
; `end_tag` will still match when only `</div` is present. Without enforcing
|
||||
; the presence of `>`, the dedent happens too soon.
|
||||
|
Loading…
Reference in New Issue
Block a user