From bb3de8fa5e509d5f5faf173fd1a92635a0023274 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 8 Oct 2020 00:40:28 +0200 Subject: Fix markdown and other highlighting, #578 --- after/syntax/html/aria.vim | 79 ++++++++++++++++++++++++++++++++++++++++++ after/syntax/html/electron.vim | 19 ++++++++++ after/syntax/html/rdfa.vim | 15 ++++++++ 3 files changed, 113 insertions(+) create mode 100644 after/syntax/html/aria.vim create mode 100644 after/syntax/html/electron.vim create mode 100644 after/syntax/html/rdfa.vim (limited to 'after/syntax/html') diff --git a/after/syntax/html/aria.vim b/after/syntax/html/aria.vim new file mode 100644 index 00000000..0c555e6e --- /dev/null +++ b/after/syntax/html/aria.vim @@ -0,0 +1,79 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 + +" Vim syntax file +" Language: WAI-ARIA +" Maintainer: othree +" URL: https://github.com/othree/html5.vim +" Last Change: 2017-03-07 +" License: MIT +" Changes: update to Candidate Recommendation 27 October 2016 + +" WAI-ARIA States and Properties +" https://www.w3.org/TR/wai-aria-1.1/#states_and_properties +syn keyword htmlArg contained role + +" Global States and Properties +syn keyword htmlArg contained aria-atomic aria-busy aria-controls aria-describedby +syn keyword htmlArg contained aria-disabled aria-dropeffect aria-flowto aria-grabbed +syn keyword htmlArg contained aria-haspopup aria-hidden aria-invalid aria-label +syn keyword htmlArg contained aria-labelledby aria-live aria-owns aria-relevant +" 1.1 +syn keyword htmlArg contained aria-current aria-details aria-keyshortcuts aria-roledescription + +" Widget Attributes +syn keyword htmlArg contained aria-autocomplete aria-checked aria-disabled aria-expanded +syn keyword htmlArg contained aria-haspopup aria-hidden aria-invalid aria-label +syn keyword htmlArg contained aria-level aria-multiline aria-multiselectable aria-orientation +syn keyword htmlArg contained aria-pressed aria-readonly aria-required aria-selected +syn keyword htmlArg contained aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext +" 1.1 +syn keyword htmlArg contained aria-errormessage aria-hasgroup aria-modal aria-placeholder + +" Live Region Attributes +syn keyword htmlArg contained aria-atomic aria-busy aria-live aria-relevant + +" Drag-and-Drop attributes +syn keyword htmlArg contained aria-dropeffect aria-grabbed + +" Relationship Attributes +syn keyword htmlArg contained aria-activedescendant aria-controls aria-describedby aria-flowto +syn keyword htmlArg contained aria-labelledby aria-owns aria-posinset aria-setsize +" 1.1 +syn keyword htmlArg contained aria-colcount aria-colindex aria-colspan +syn keyword htmlArg contained aria-rowcount aria-rowindex aria-rowspan + + +" Use match: https://github.com/othree/html5.vim/issues/39 + +" Global States and Properties +syn match htmlArg contained "\" +syn match htmlArg contained "\" +syn match htmlArg contained "\" +syn match htmlArg contained "\" +" 1.1 +syn match htmlArg contained "\" + +" Widget Attributes +syn match htmlArg contained "\" +syn match htmlArg contained "\" +syn match htmlArg contained "\" +syn match htmlArg contained "\" +syn match htmlArg contained "\" +" 1.1 +syn match htmlArg contained "\" + +" Live Region Attributes +syn match htmlArg contained "\" + +" Drag-and-Drop attributes +syn match htmlArg contained "\" + +" Relationship Attributes +syn match htmlArg contained "\" +syn match htmlArg contained "\" +" 1.1 +syn match htmlArg contained "\" +syn match htmlArg contained "\" + + +endif diff --git a/after/syntax/html/electron.vim b/after/syntax/html/electron.vim new file mode 100644 index 00000000..f51e1aef --- /dev/null +++ b/after/syntax/html/electron.vim @@ -0,0 +1,19 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 + +" Vim syntax file +" Language: Electron +" Maintainer: othree +" URL: https://github.com/othree/html5.vim +" Last Change: 2017-03-15 +" License: MIT + +" https://electron.atom.io/docs/api/webview-tag/ +syn keyword htmlTagName contained webview + +syn keyword htmlArg contained autosize nodeintegration plugins preload httpreferrer +syn keyword htmlArg contained useragent disablewebsecurity partition allowpopups +syn keyword htmlArg contained webpreferences blinkfeatures disableblinkfeatures +syn keyword htmlArg contained guestinstance disableguestresize + + +endif diff --git a/after/syntax/html/rdfa.vim b/after/syntax/html/rdfa.vim new file mode 100644 index 00000000..d772d43c --- /dev/null +++ b/after/syntax/html/rdfa.vim @@ -0,0 +1,15 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 + +" Vim syntax file +" Language: RDFa +" Maintainer: othree +" URL: http://github.com/othree/html5-syntax.vim +" Last Change: 2012-06-08 +" License: MIT +" Changes: update to Rec 07 June 2012 + +" RDFa +" http://www.w3.org/TR/rdfa-syntax/#s_syntax +syn keyword htmlArg contained about content datatype href inlist prefix property rel resource rev src typeof vocab + +endif -- cgit v1.2.3