1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 04:52:53 +03:00

rc base html: Highlight the DOCTYPE and tag attributes

This commit is contained in:
Frank LENORMAND 2017-08-26 11:28:56 +03:00
parent 4e36bc7bf8
commit eb0786e001

View File

@ -27,6 +27,8 @@ add-highlighter -group /html/style ref css
add-highlighter -group /html/script ref javascript add-highlighter -group /html/script ref javascript
add-highlighter -group /html/tag regex </?(\w+) 1:keyword add-highlighter -group /html/tag regex </?(\w+) 1:keyword
add-highlighter -group /html/tag regex \b([a-zA-Z0-9_-]+)= 1:attribute
add-highlighter -group /html/tag regex <(!DOCTYPE(\h+\w+)+) 1:meta
add-highlighter -group /html/tag regions content \ add-highlighter -group /html/tag regions content \
string '"' (?<!\\)(\\\\)*" '' \ string '"' (?<!\\)(\\\\)*" '' \