mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 12:03:53 -05:00
Fix eruby filetype detect, closes #547
This commit is contained in:
@@ -14,7 +14,7 @@ A collection of language packs for Vim.
|
|||||||
- Automatically detect indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth))
|
- Automatically detect indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth))
|
||||||
- Each build is tested by automated vimrunner script on CI. See `spec` directory.
|
- Each build is tested by automated vimrunner script on CI. See `spec` directory.
|
||||||
|
|
||||||
\*To be completely honest, optimized `ftdetect` script takes around `19ms` to load.
|
\*To be completely honest, optimized `ftdetect` script takes around `20ms` to load.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,14 @@
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
" We need it because scripts.vim in vim uses "set ft=" which cannot be
|
||||||
|
" overridden with setf (and we can't use set ft= so our scripts.vim work)
|
||||||
|
func! s:Setf(ft)
|
||||||
|
if &filetype !~# '<'.a:ft.'>'
|
||||||
|
let &filetype = a:ft
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
func! polyglot#Heuristics()
|
func! polyglot#Heuristics()
|
||||||
" Try to detect filetype from shebang
|
" Try to detect filetype from shebang
|
||||||
let l:filetype = polyglot#Shebang()
|
let l:filetype = polyglot#Shebang()
|
||||||
@@ -127,34 +135,34 @@ endfunc
|
|||||||
func! polyglot#DetectInpFiletype()
|
func! polyglot#DetectInpFiletype()
|
||||||
let line = getline(1)
|
let line = getline(1)
|
||||||
if line =~# '^\*'
|
if line =~# '^\*'
|
||||||
setf abaqus | return
|
call s:Setf('abaqus') | return
|
||||||
endif
|
endif
|
||||||
for lnum in range(1, min([line("$"), 500]))
|
for lnum in range(1, min([line("$"), 500]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~? '^header surface data'
|
if line =~? '^header surface data'
|
||||||
setf trasys | return
|
call s:Setf('trasys') | return
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#DetectAsaFiletype()
|
func! polyglot#DetectAsaFiletype()
|
||||||
if exists("g:filetype_asa")
|
if exists("g:filetype_asa")
|
||||||
exe "setf " . g:filetype_asa | return
|
call s:Setf(g:filetype_asa) | return
|
||||||
endif
|
endif
|
||||||
setf aspvbs | return
|
call s:Setf('aspvbs') | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#DetectAspFiletype()
|
func! polyglot#DetectAspFiletype()
|
||||||
if exists("g:filetype_asp")
|
if exists("g:filetype_asp")
|
||||||
exe "setf " . g:filetype_asp | return
|
call s:Setf(g:filetype_asp) | return
|
||||||
endif
|
endif
|
||||||
for lnum in range(1, min([line("$"), 3]))
|
for lnum in range(1, min([line("$"), 3]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~? 'perlscript'
|
if line =~? 'perlscript'
|
||||||
setf aspperl | return
|
call s:Setf('aspperl') | return
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
setf aspvbs | return
|
call s:Setf('aspvbs') | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#DetectHFiletype()
|
func! polyglot#DetectHFiletype()
|
||||||
@@ -162,18 +170,18 @@ func! polyglot#DetectHFiletype()
|
|||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^\s*\(@\(interface\|class\|protocol\|property\|end\|synchronised\|selector\|implementation\)\(\<\|\>\)\|#import\s\+.\+\.h[">]\)'
|
if line =~# '^\s*\(@\(interface\|class\|protocol\|property\|end\|synchronised\|selector\|implementation\)\(\<\|\>\)\|#import\s\+.\+\.h[">]\)'
|
||||||
if exists("g:c_syntax_for_h")
|
if exists("g:c_syntax_for_h")
|
||||||
setf objc | return
|
call s:Setf('objc') | return
|
||||||
endif
|
endif
|
||||||
setf objcpp | return
|
call s:Setf('objcpp') | return
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
if exists("g:c_syntax_for_h")
|
if exists("g:c_syntax_for_h")
|
||||||
setf c | return
|
call s:Setf('c') | return
|
||||||
endif
|
endif
|
||||||
if exists("g:ch_syntax_for_h")
|
if exists("g:ch_syntax_for_h")
|
||||||
setf ch | return
|
call s:Setf('ch') | return
|
||||||
endif
|
endif
|
||||||
setf cpp | return
|
call s:Setf('cpp') | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#DetectMFiletype()
|
func! polyglot#DetectMFiletype()
|
||||||
@@ -184,53 +192,53 @@ func! polyglot#DetectMFiletype()
|
|||||||
let saw_comment = 1
|
let saw_comment = 1
|
||||||
endif
|
endif
|
||||||
if line =~# '^\s*\(@\(interface\|class\|protocol\|property\|end\|synchronised\|selector\|implementation\)\(\<\|\>\)\|#import\s\+.\+\.h[">]\)'
|
if line =~# '^\s*\(@\(interface\|class\|protocol\|property\|end\|synchronised\|selector\|implementation\)\(\<\|\>\)\|#import\s\+.\+\.h[">]\)'
|
||||||
setf objc | return
|
call s:Setf('objc') | return
|
||||||
endif
|
endif
|
||||||
if line =~# '^\s*%'
|
if line =~# '^\s*%'
|
||||||
setf octave | return
|
call s:Setf('octave') | return
|
||||||
endif
|
endif
|
||||||
if line =~# '^\s*(\*'
|
if line =~# '^\s*(\*'
|
||||||
setf mma | return
|
call s:Setf('mma') | return
|
||||||
endif
|
endif
|
||||||
if line =~? '^\s*\(\(type\|var\)\(\<\|\>\)\|--\)'
|
if line =~? '^\s*\(\(type\|var\)\(\<\|\>\)\|--\)'
|
||||||
setf murphi | return
|
call s:Setf('murphi') | return
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
if saw_comment
|
if saw_comment
|
||||||
setf objc | return
|
call s:Setf('objc') | return
|
||||||
endif
|
endif
|
||||||
if exists("g:filetype_m")
|
if exists("g:filetype_m")
|
||||||
exe "setf " . g:filetype_m | return
|
call s:Setf(g:filetype_m) | return
|
||||||
endif
|
endif
|
||||||
setf octave | return
|
call s:Setf('octave') | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#DetectFsFiletype()
|
func! polyglot#DetectFsFiletype()
|
||||||
for lnum in range(1, min([line("$"), 50]))
|
for lnum in range(1, min([line("$"), 50]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^\(: \|new-device\)'
|
if line =~# '^\(: \|new-device\)'
|
||||||
setf forth | return
|
call s:Setf('forth') | return
|
||||||
endif
|
endif
|
||||||
if line =~# '^\s*\(#light\|import\|let\|module\|namespace\|open\|type\)'
|
if line =~# '^\s*\(#light\|import\|let\|module\|namespace\|open\|type\)'
|
||||||
setf fsharp | return
|
call s:Setf('fsharp') | return
|
||||||
endif
|
endif
|
||||||
if line =~# '\s*\(#version\|precision\|uniform\|varying\|vec[234]\)'
|
if line =~# '\s*\(#version\|precision\|uniform\|varying\|vec[234]\)'
|
||||||
setf glsl | return
|
call s:Setf('glsl') | return
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
if exists("g:filetype_fs")
|
if exists("g:filetype_fs")
|
||||||
exe "setf " . g:filetype_fs | return
|
call s:Setf(g:filetype_fs) | return
|
||||||
endif
|
endif
|
||||||
setf forth | return
|
call s:Setf('forth') | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#DetectReFiletype()
|
func! polyglot#DetectReFiletype()
|
||||||
for lnum in range(1, min([line("$"), 50]))
|
for lnum in range(1, min([line("$"), 50]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^\s*#\%(\%(if\|ifdef\|define\|pragma\)\s\+\w\|\s*include\s\+[<"]\|template\s*<\)'
|
if line =~# '^\s*#\%(\%(if\|ifdef\|define\|pragma\)\s\+\w\|\s*include\s\+[<"]\|template\s*<\)'
|
||||||
setf cpp | return
|
call s:Setf('cpp') | return
|
||||||
endif
|
endif
|
||||||
setf reason | return
|
call s:Setf('reason') | return
|
||||||
endfor
|
endfor
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
@@ -238,54 +246,54 @@ func! polyglot#DetectIdrFiletype()
|
|||||||
for lnum in range(1, min([line("$"), 5]))
|
for lnum in range(1, min([line("$"), 5]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^\s*--.*[Ii]dris \=1'
|
if line =~# '^\s*--.*[Ii]dris \=1'
|
||||||
setf idris | return
|
call s:Setf('idris') | return
|
||||||
endif
|
endif
|
||||||
if line =~# '^\s*--.*[Ii]dris \=2'
|
if line =~# '^\s*--.*[Ii]dris \=2'
|
||||||
setf idris2 | return
|
call s:Setf('idris2') | return
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
for lnum in range(1, min([line("$"), 30]))
|
for lnum in range(1, min([line("$"), 30]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^pkgs =.*'
|
if line =~# '^pkgs =.*'
|
||||||
setf idris | return
|
call s:Setf('idris') | return
|
||||||
endif
|
endif
|
||||||
if line =~# '^depends =.*'
|
if line =~# '^depends =.*'
|
||||||
setf idris2 | return
|
call s:Setf('idris2') | return
|
||||||
endif
|
endif
|
||||||
if line =~# '^%language \(TypeProviders\|ElabReflection\)'
|
if line =~# '^%language \(TypeProviders\|ElabReflection\)'
|
||||||
setf idris | return
|
call s:Setf('idris') | return
|
||||||
endif
|
endif
|
||||||
if line =~# '^%language PostfixProjections'
|
if line =~# '^%language PostfixProjections'
|
||||||
setf idris2 | return
|
call s:Setf('idris2') | return
|
||||||
endif
|
endif
|
||||||
if line =~# '^%access .*'
|
if line =~# '^%access .*'
|
||||||
setf idris | return
|
call s:Setf('idris') | return
|
||||||
endif
|
endif
|
||||||
if exists("g:filetype_idr")
|
if exists("g:filetype_idr")
|
||||||
exe "setf " . g:filetype_idr | return
|
call s:Setf(g:filetype_idr) | return
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
setf idris2 | return
|
call s:Setf('idris2') | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#DetectLidrFiletype()
|
func! polyglot#DetectLidrFiletype()
|
||||||
for lnum in range(1, min([line("$"), 200]))
|
for lnum in range(1, min([line("$"), 200]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^>\s*--.*[Ii]dris \=1'
|
if line =~# '^>\s*--.*[Ii]dris \=1'
|
||||||
setf lidris | return
|
call s:Setf('lidris') | return
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
setf lidris2 | return
|
call s:Setf('lidris2') | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#DetectBasFiletype()
|
func! polyglot#DetectBasFiletype()
|
||||||
for lnum in range(1, min([line("$"), 5]))
|
for lnum in range(1, min([line("$"), 5]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~? 'VB_Name\|Begin VB\.\(Form\|MDIForm\|UserControl\)'
|
if line =~? 'VB_Name\|Begin VB\.\(Form\|MDIForm\|UserControl\)'
|
||||||
setf vb | return
|
call s:Setf('vb') | return
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
setf basic | return
|
call s:Setf('basic') | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Restore 'cpoptions'
|
" Restore 'cpoptions'
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ let s:globs = {
|
|||||||
\ 'dd': '*.dd',
|
\ 'dd': '*.dd',
|
||||||
\ 'ddoc': '*.ddoc',
|
\ 'ddoc': '*.ddoc',
|
||||||
\ 'dhall': '*.dhall',
|
\ 'dhall': '*.dhall',
|
||||||
\ 'dosini': '*.wrap,*.ini,*.cfg,*.dof,*.lektorproject,*.prefs,*.pro,*.properties,buildozer.spec,php.ini-*',
|
\ 'dosini': '*.wrap,*.ini,*.dof,*.lektorproject,*.prefs,*.pro,*.properties,buildozer.spec,php.ini-*',
|
||||||
\ 'dsdl': '*.sdl',
|
\ 'dsdl': '*.sdl',
|
||||||
\ 'dune': 'jbuild,dune,dune-project,dune-workspace',
|
\ 'dune': 'jbuild,dune,dune-project,dune-workspace',
|
||||||
\ 'ecrystal': '*.ecr',
|
\ 'ecrystal': '*.ecr',
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1197,7 +1197,6 @@ remote: StanAngeloff/php.vim
|
|||||||
filetypes:
|
filetypes:
|
||||||
- name: php
|
- name: php
|
||||||
linguist: PHP
|
linguist: PHP
|
||||||
# Needs to be after .php (can be .blade.php)
|
|
||||||
---
|
---
|
||||||
name: blade
|
name: blade
|
||||||
remote: jwalton512/vim-blade
|
remote: jwalton512/vim-blade
|
||||||
@@ -1825,6 +1824,8 @@ filetypes:
|
|||||||
- 'php.ini-*'
|
- 'php.ini-*'
|
||||||
- '*/etc/yum.conf'
|
- '*/etc/yum.conf'
|
||||||
- '*/etc/yum.repos.d/*'
|
- '*/etc/yum.repos.d/*'
|
||||||
|
ignored_extensions:
|
||||||
|
- cfg
|
||||||
ignored_warnings:
|
ignored_warnings:
|
||||||
- php.ini
|
- php.ini
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -29,15 +29,8 @@ def load_data()
|
|||||||
|
|
||||||
deps = Hash.new { |h, k| h[k] = [] }
|
deps = Hash.new { |h, k| h[k] = [] }
|
||||||
|
|
||||||
for package in packages.values
|
|
||||||
for name in [package.fetch("after", [])].flatten
|
|
||||||
packages[name] or raise "#{package["name"]} depends on unknown package: #{name}"
|
|
||||||
deps[name] << package["name"]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
each_node = lambda {|&b| packages.keys.each(&b) }
|
each_node = lambda {|&b| packages.keys.each(&b) }
|
||||||
each_child = lambda {|n, &b| deps[n].each(&b) }
|
each_child = lambda {|n, &b| [packages[n].fetch("after", [])].flatten.each(&b) }
|
||||||
|
|
||||||
languages = load_languages
|
languages = load_languages
|
||||||
|
|
||||||
@@ -327,13 +320,13 @@ def rule_to_code(rule)
|
|||||||
if rule.has_key?("override")
|
if rule.has_key?("override")
|
||||||
return <<~EOS
|
return <<~EOS
|
||||||
if exists("#{rule["override"]}")
|
if exists("#{rule["override"]}")
|
||||||
exe "setf " . #{rule["override"]} | return
|
call s:Setf(#{rule["override"]}) | return
|
||||||
endif
|
endif
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
if rule.has_key?("filetype")
|
if rule.has_key?("filetype")
|
||||||
return "setf #{rule["filetype"]} | return"
|
return "call s:Setf('#{rule["filetype"]}') | return"
|
||||||
end
|
end
|
||||||
|
|
||||||
return ""
|
return ""
|
||||||
@@ -350,8 +343,7 @@ def extract(packages)
|
|||||||
FileUtils.rm_rf(all_dirs)
|
FileUtils.rm_rf(all_dirs)
|
||||||
|
|
||||||
output = []
|
output = []
|
||||||
# We need to reverse packages so they are included in proper order
|
packages.map do |package|
|
||||||
packages.reverse.map do |package|
|
|
||||||
repo, branch, path, dir = parse_remote(package["remote"])
|
repo, branch, path, dir = parse_remote(package["remote"])
|
||||||
dirs = package.fetch("dirs", default_dirs)
|
dirs = package.fetch("dirs", default_dirs)
|
||||||
ignored_dirs = package.fetch("ignored_dirs", [])
|
ignored_dirs = package.fetch("ignored_dirs", [])
|
||||||
@@ -462,7 +454,7 @@ def generate_ftdetect(packages, heuristics)
|
|||||||
name = filetype.fetch("name")
|
name = filetype.fetch("name")
|
||||||
syntax = filetype["syntax"] ? " | set syntax=#{filetype["syntax"]}" : ""
|
syntax = filetype["syntax"] ? " | set syntax=#{filetype["syntax"]}" : ""
|
||||||
|
|
||||||
set_command = "setf #{name}"
|
set_command = "call s:Setf('#{name}')"
|
||||||
|
|
||||||
if filetype["syntax"]
|
if filetype["syntax"]
|
||||||
set_command = "if !did_filetype() | set ft=#{name} syntax=#{filetype["syntax"]} | endif"
|
set_command = "if !did_filetype() | set ft=#{name} syntax=#{filetype["syntax"]} | endif"
|
||||||
@@ -544,6 +536,14 @@ def generate_ftdetect(packages, heuristics)
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
" We need it because scripts.vim in vim uses "set ft=" which cannot be
|
||||||
|
" overridden with setf (and we can't use set ft= so our scripts.vim work)
|
||||||
|
func! s:Setf(ft)
|
||||||
|
if &filetype !~# '\<'.a:ft.'\>'
|
||||||
|
let &filetype = a:ft
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
func! polyglot#Heuristics()
|
func! polyglot#Heuristics()
|
||||||
" Try to detect filetype from shebang
|
" Try to detect filetype from shebang
|
||||||
let l:filetype = polyglot#Shebang()
|
let l:filetype = polyglot#Shebang()
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ vim --clean -N -u <(echo "
|
|||||||
let &rtp='$PWD,'.&rtp
|
let &rtp='$PWD,'.&rtp
|
||||||
let g:polyglot_test = 1
|
let g:polyglot_test = 1
|
||||||
source scripts/test_extensions.vim
|
source scripts/test_extensions.vim
|
||||||
\"source scripts/test_filetypes.vim
|
source scripts/test_filetypes.vim
|
||||||
qa!
|
qa!
|
||||||
")
|
")
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ function! TestExtension(filetype, filename, content)
|
|||||||
1delete _
|
1delete _
|
||||||
filetype detect
|
filetype detect
|
||||||
exec "if &filetype != '" . a:filetype . "' \nthrow &filetype\nendif"
|
exec "if &filetype != '" . a:filetype . "' \nthrow &filetype\nendif"
|
||||||
exec ":q!"
|
exec ":bw!"
|
||||||
catch
|
catch
|
||||||
echo g:message
|
echo g:message
|
||||||
echo "Filename '" . a:filename . "' does not resolve to extension '" . a:filetype . "'"
|
echo "Filename '" . a:filename . "' does not resolve to extension '" . a:filetype . "'"
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ function! TestFiletype(filetype)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call TestFiletype('8th')
|
call TestFiletype('8th')
|
||||||
|
call TestFiletype('haproxy')
|
||||||
call TestFiletype('a2ps')
|
call TestFiletype('a2ps')
|
||||||
call TestFiletype('a65')
|
call TestFiletype('a65')
|
||||||
call TestFiletype('aap')
|
call TestFiletype('aap')
|
||||||
@@ -26,16 +27,20 @@ call TestFiletype('aidl')
|
|||||||
call TestFiletype('alsaconf')
|
call TestFiletype('alsaconf')
|
||||||
call TestFiletype('aml')
|
call TestFiletype('aml')
|
||||||
call TestFiletype('ampl')
|
call TestFiletype('ampl')
|
||||||
|
call TestFiletype('xml')
|
||||||
call TestFiletype('ant')
|
call TestFiletype('ant')
|
||||||
call TestFiletype('apache')
|
call TestFiletype('apache')
|
||||||
call TestFiletype('apiblueprint')
|
call TestFiletype('apiblueprint')
|
||||||
call TestFiletype('applescript')
|
call TestFiletype('applescript')
|
||||||
call TestFiletype('aptconf')
|
call TestFiletype('aptconf')
|
||||||
call TestFiletype('arch')
|
call TestFiletype('arch')
|
||||||
|
call TestFiletype('cpp')
|
||||||
|
call TestFiletype('c')
|
||||||
call TestFiletype('arduino')
|
call TestFiletype('arduino')
|
||||||
call TestFiletype('art')
|
call TestFiletype('art')
|
||||||
call TestFiletype('asciidoc')
|
call TestFiletype('asciidoc')
|
||||||
call TestFiletype('autohotkey')
|
call TestFiletype('autohotkey')
|
||||||
|
call TestFiletype('elf')
|
||||||
call TestFiletype('automake')
|
call TestFiletype('automake')
|
||||||
call TestFiletype('asn')
|
call TestFiletype('asn')
|
||||||
call TestFiletype('aspvbs')
|
call TestFiletype('aspvbs')
|
||||||
@@ -44,9 +49,6 @@ call TestFiletype('atlas')
|
|||||||
call TestFiletype('autoit')
|
call TestFiletype('autoit')
|
||||||
call TestFiletype('ave')
|
call TestFiletype('ave')
|
||||||
call TestFiletype('awk')
|
call TestFiletype('awk')
|
||||||
call TestFiletype('reason')
|
|
||||||
call TestFiletype('cpp')
|
|
||||||
call TestFiletype('c')
|
|
||||||
call TestFiletype('caddyfile')
|
call TestFiletype('caddyfile')
|
||||||
call TestFiletype('carp')
|
call TestFiletype('carp')
|
||||||
call TestFiletype('clojure')
|
call TestFiletype('clojure')
|
||||||
@@ -61,7 +63,6 @@ call TestFiletype('cucumber')
|
|||||||
call TestFiletype('cuesheet')
|
call TestFiletype('cuesheet')
|
||||||
call TestFiletype('dart')
|
call TestFiletype('dart')
|
||||||
call TestFiletype('dhall')
|
call TestFiletype('dhall')
|
||||||
call TestFiletype('grub')
|
|
||||||
call TestFiletype('d')
|
call TestFiletype('d')
|
||||||
call TestFiletype('dcov')
|
call TestFiletype('dcov')
|
||||||
call TestFiletype('dd')
|
call TestFiletype('dd')
|
||||||
@@ -69,7 +70,6 @@ call TestFiletype('ddoc')
|
|||||||
call TestFiletype('dsdl')
|
call TestFiletype('dsdl')
|
||||||
call TestFiletype('Dockerfile')
|
call TestFiletype('Dockerfile')
|
||||||
call TestFiletype('yaml.docker-compose')
|
call TestFiletype('yaml.docker-compose')
|
||||||
call TestFiletype('elf')
|
|
||||||
call TestFiletype('elixir')
|
call TestFiletype('elixir')
|
||||||
call TestFiletype('eelixir')
|
call TestFiletype('eelixir')
|
||||||
call TestFiletype('elm')
|
call TestFiletype('elm')
|
||||||
@@ -81,23 +81,26 @@ call TestFiletype('ferm')
|
|||||||
call TestFiletype('fish')
|
call TestFiletype('fish')
|
||||||
call TestFiletype('fbs')
|
call TestFiletype('fbs')
|
||||||
call TestFiletype('forth')
|
call TestFiletype('forth')
|
||||||
|
call TestFiletype('glsl')
|
||||||
call TestFiletype('fsharp')
|
call TestFiletype('fsharp')
|
||||||
call TestFiletype('gdscript3')
|
call TestFiletype('gdscript3')
|
||||||
call TestFiletype('gitconfig')
|
call TestFiletype('gitconfig')
|
||||||
call TestFiletype('gitrebase')
|
call TestFiletype('gitrebase')
|
||||||
call TestFiletype('gitsendemail')
|
call TestFiletype('gitsendemail')
|
||||||
call TestFiletype('gitcommit')
|
call TestFiletype('gitcommit')
|
||||||
call TestFiletype('glsl')
|
|
||||||
call TestFiletype('gmpl')
|
call TestFiletype('gmpl')
|
||||||
call TestFiletype('gnuplot')
|
call TestFiletype('gnuplot')
|
||||||
call TestFiletype('go')
|
call TestFiletype('go')
|
||||||
call TestFiletype('gomod')
|
call TestFiletype('gomod')
|
||||||
call TestFiletype('gohtmltmpl')
|
call TestFiletype('gohtmltmpl')
|
||||||
|
call TestFiletype('javascript')
|
||||||
|
call TestFiletype('flow')
|
||||||
|
call TestFiletype('javascriptreact')
|
||||||
call TestFiletype('graphql')
|
call TestFiletype('graphql')
|
||||||
call TestFiletype('groovy')
|
call TestFiletype('groovy')
|
||||||
|
call TestFiletype('grub')
|
||||||
call TestFiletype('haml')
|
call TestFiletype('haml')
|
||||||
call TestFiletype('mustache')
|
call TestFiletype('mustache')
|
||||||
call TestFiletype('haproxy')
|
|
||||||
call TestFiletype('haskell')
|
call TestFiletype('haskell')
|
||||||
call TestFiletype('haxe')
|
call TestFiletype('haxe')
|
||||||
call TestFiletype('hcl')
|
call TestFiletype('hcl')
|
||||||
@@ -109,9 +112,6 @@ call TestFiletype('idris')
|
|||||||
call TestFiletype('idris2')
|
call TestFiletype('idris2')
|
||||||
call TestFiletype('lidris2')
|
call TestFiletype('lidris2')
|
||||||
call TestFiletype('ion')
|
call TestFiletype('ion')
|
||||||
call TestFiletype('javascriptreact')
|
|
||||||
call TestFiletype('javascript')
|
|
||||||
call TestFiletype('flow')
|
|
||||||
call TestFiletype('Jenkinsfile')
|
call TestFiletype('Jenkinsfile')
|
||||||
call TestFiletype('jinja.html')
|
call TestFiletype('jinja.html')
|
||||||
call TestFiletype('jq')
|
call TestFiletype('jq')
|
||||||
@@ -131,7 +131,6 @@ call TestFiletype('log')
|
|||||||
call TestFiletype('lua')
|
call TestFiletype('lua')
|
||||||
call TestFiletype('m4')
|
call TestFiletype('m4')
|
||||||
call TestFiletype('mako')
|
call TestFiletype('mako')
|
||||||
call TestFiletype('octave')
|
|
||||||
call TestFiletype('mma')
|
call TestFiletype('mma')
|
||||||
call TestFiletype('markdown')
|
call TestFiletype('markdown')
|
||||||
call TestFiletype('markdown.mdx')
|
call TestFiletype('markdown.mdx')
|
||||||
@@ -152,12 +151,13 @@ call TestFiletype('ocamlbuild_tags')
|
|||||||
call TestFiletype('ocpbuild')
|
call TestFiletype('ocpbuild')
|
||||||
call TestFiletype('ocpbuildroot')
|
call TestFiletype('ocpbuildroot')
|
||||||
call TestFiletype('sexplib')
|
call TestFiletype('sexplib')
|
||||||
|
call TestFiletype('octave')
|
||||||
call TestFiletype('opencl')
|
call TestFiletype('opencl')
|
||||||
call TestFiletype('perl')
|
call TestFiletype('perl')
|
||||||
call TestFiletype('sql')
|
call TestFiletype('sql')
|
||||||
call TestFiletype('cql')
|
call TestFiletype('cql')
|
||||||
call TestFiletype('blade')
|
|
||||||
call TestFiletype('php')
|
call TestFiletype('php')
|
||||||
|
call TestFiletype('blade')
|
||||||
call TestFiletype('plantuml')
|
call TestFiletype('plantuml')
|
||||||
call TestFiletype('pony')
|
call TestFiletype('pony')
|
||||||
call TestFiletype('ps1')
|
call TestFiletype('ps1')
|
||||||
@@ -178,6 +178,7 @@ call TestFiletype('ragel')
|
|||||||
call TestFiletype('raku')
|
call TestFiletype('raku')
|
||||||
call TestFiletype('raml')
|
call TestFiletype('raml')
|
||||||
call TestFiletype('razor')
|
call TestFiletype('razor')
|
||||||
|
call TestFiletype('reason')
|
||||||
call TestFiletype('rst')
|
call TestFiletype('rst')
|
||||||
call TestFiletype('ruby')
|
call TestFiletype('ruby')
|
||||||
call TestFiletype('eruby')
|
call TestFiletype('eruby')
|
||||||
@@ -218,10 +219,9 @@ call TestFiletype('velocity')
|
|||||||
call TestFiletype('vmasm')
|
call TestFiletype('vmasm')
|
||||||
call TestFiletype('vue')
|
call TestFiletype('vue')
|
||||||
call TestFiletype('xdc')
|
call TestFiletype('xdc')
|
||||||
call TestFiletype('xml')
|
|
||||||
call TestFiletype('xsl')
|
call TestFiletype('xsl')
|
||||||
call TestFiletype('yaml.ansible')
|
|
||||||
call TestFiletype('yaml')
|
call TestFiletype('yaml')
|
||||||
|
call TestFiletype('yaml.ansible')
|
||||||
call TestFiletype('helm')
|
call TestFiletype('helm')
|
||||||
call TestFiletype('help')
|
call TestFiletype('help')
|
||||||
call TestFiletype('zephir')
|
call TestFiletype('zephir')
|
||||||
|
|||||||
@@ -1,35 +1,90 @@
|
|||||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jinja') == -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
|
||||||
|
|
||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: HTML (version 5)
|
" Language: HTML (version 5.1)
|
||||||
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
|
" SVG (SVG 1.1 Second Edition)
|
||||||
" URL: http://rm.blog.br/vim/syntax/html.vim
|
" MathML (MathML 3.0 Second Edition)
|
||||||
" Last Change: 2009 Aug 19
|
" Last Change: 2017 Mar 07
|
||||||
" License: Public domain
|
" License: Public domain
|
||||||
" (but let me know if you like :) )
|
" (but let me know if you like :) )
|
||||||
"
|
"
|
||||||
" Note: This file just adds the new tags from HTML 5
|
" Note: This file just add new tags from HTML 5
|
||||||
" and don't replace default html.vim syntax file
|
" and don't replace default html.vim syntax file
|
||||||
"
|
"
|
||||||
" Modified: othree <othree@gmail.com>
|
" Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com )
|
||||||
" Changes: update to Draft 28 August 2010
|
" Changes: update to Draft 2016 Jan 13
|
||||||
" add complete new attributes
|
" add microdata Attributes
|
||||||
" add wai-aria attributes
|
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
|
||||||
" add microdata attributes
|
" URL: http://rm.blog.br/vim/syntax/html.vim
|
||||||
" add rdfa attributes
|
" Modified: htdebeer <H.T.de.Beer@gmail.com>
|
||||||
|
" Changes: add common SVG elements and attributes for inline SVG
|
||||||
|
|
||||||
|
" Patch 7.4.1142
|
||||||
|
if has("patch-7.4-1142")
|
||||||
|
if has("win32")
|
||||||
|
syn iskeyword @,48-57,_,128-167,224-235,-
|
||||||
|
else
|
||||||
|
syn iskeyword @,48-57,_,192-255,-
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
syn keyword htmlTagName contained script
|
|
||||||
" HTML 5 tags
|
" HTML 5 tags
|
||||||
syn keyword htmlTagName contained article aside audio canvas command
|
syn keyword htmlTagName contained article aside audio canvas command
|
||||||
syn keyword htmlTagName contained datalist details dialog embed figcaption figure footer
|
syn keyword htmlTagName contained datalist details dialog embed figcaption figure footer
|
||||||
syn keyword htmlTagName contained header hgroup keygen mark meter menu nav output
|
syn keyword htmlTagName contained header hgroup keygen main mark meter menu menuitem nav output
|
||||||
syn keyword htmlTagName contained progress time ruby rt rp section source summary time track video wbr
|
syn keyword htmlTagName contained progress ruby rt rp rb rtc section source summary time track video data
|
||||||
|
syn keyword htmlTagName contained template content shadow slot
|
||||||
|
syn keyword htmlTagName contained wbr bdi
|
||||||
|
syn keyword htmlTagName contained picture
|
||||||
|
|
||||||
|
" SVG tags
|
||||||
|
" http://www.w3.org/TR/SVG/
|
||||||
|
" as found in http://www.w3.org/TR/SVG/eltindex.html
|
||||||
|
syn keyword htmlTagName contained svg
|
||||||
|
syn keyword htmlTagName contained altGlyph altGlyphDef altGlyphItem
|
||||||
|
syn keyword htmlTagName contained animate animateColor animateMotion animateTransform
|
||||||
|
syn keyword htmlTagName contained circle ellipse rect line polyline polygon image path
|
||||||
|
syn keyword htmlTagName contained clipPath color-profile cursor
|
||||||
|
syn keyword htmlTagName contained defs desc g symbol view use switch foreignObject
|
||||||
|
syn keyword htmlTagName contained filter feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence
|
||||||
|
syn keyword htmlTagName contained font font-face font-face-format font-face-name font-face-src font-face-uri
|
||||||
|
syn keyword htmlTagName contained glyph glyphRef hkern
|
||||||
|
syn keyword htmlTagName contained linearGradient marker mask pattern radialGradient set stop
|
||||||
|
syn keyword htmlTagName contained missing-glyph mpath
|
||||||
|
syn keyword htmlTagName contained text textPath tref tspan vkern
|
||||||
|
syn keyword htmlTagName contained metadata title
|
||||||
|
|
||||||
|
" MathML tags
|
||||||
|
" https://www.w3.org/TR/MathML3/appendixi.html#index.elem
|
||||||
|
syn keyword htmlTagName contained abs and annotation annotation-xml apply approx arccos arccosh arccot arccoth
|
||||||
|
syn keyword htmlTagName contained arccsc arccsch arcsec arcsech arcsin arcsinh arctan arctanh arg bind
|
||||||
|
syn keyword htmlTagName contained bvar card cartesianproduct cbytes ceiling cerror ci cn codomain complexes
|
||||||
|
syn keyword htmlTagName contained compose condition conjugate cos cosh cot coth cs csc csch
|
||||||
|
syn keyword htmlTagName contained csymbol curl declare degree determinant diff divergence divide domain domainofapplication
|
||||||
|
syn keyword htmlTagName contained emptyset eq equivalent eulergamma exists exp exponentiale factorial factorof false
|
||||||
|
syn keyword htmlTagName contained floor fn forall gcd geq grad gt ident image imaginary
|
||||||
|
syn keyword htmlTagName contained imaginaryi implies in infinity int integers intersect interval inverse lambda
|
||||||
|
syn keyword htmlTagName contained laplacian lcm leq limit list ln log logbase lowlimit lt
|
||||||
|
syn keyword htmlTagName contained maction maligngroup malignmark math matrix matrixrow max mean median menclose
|
||||||
|
syn keyword htmlTagName contained merror mfenced mfrac mglyph mi mi" min minus mlabeledtr mlongdiv
|
||||||
|
syn keyword htmlTagName contained mmultiscripts mn mo mode moment momentabout mover mpadded mphantom mprescripts
|
||||||
|
syn keyword htmlTagName contained mroot mrow ms mscarries mscarry msgroup msline mspace msqrt msrow
|
||||||
|
syn keyword htmlTagName contained mstack mstyle msub msubsup msup mtable mtd mtext mtr munder
|
||||||
|
syn keyword htmlTagName contained munderover naturalnumbers neq none not notanumber notin notprsubset notsubset or
|
||||||
|
syn keyword htmlTagName contained otherwise outerproduct partialdiff pi piece piecewise plus power primes product
|
||||||
|
syn keyword htmlTagName contained prsubset quotient rationals real reals reln rem root scalarproduct sdev
|
||||||
|
syn keyword htmlTagName contained sec sech selector semantics sep set setdiff share sin sinh
|
||||||
|
syn keyword htmlTagName contained span subset sum tan tanh tendsto times transpose true union
|
||||||
|
syn keyword htmlTagName contained uplimit variance vector vectorproduct xor
|
||||||
|
|
||||||
|
" Custom Element
|
||||||
|
syn match htmlTagName contained "\<[a-z][-.0-9_a-z]*-[-.0-9_a-z]*\>"
|
||||||
|
syn match htmlTagName contained "[.0-9_a-z]\@<=-[-.0-9_a-z]*\>"
|
||||||
|
|
||||||
" HTML 5 arguments
|
" HTML 5 arguments
|
||||||
" Core Attributes
|
" Core Attributes
|
||||||
syn keyword htmlArg contained accesskey class contenteditable contextmenu dir
|
syn keyword htmlArg contained accesskey class contenteditable contextmenu dir
|
||||||
syn keyword htmlArg contained draggable hidden id lang spellcheck style tabindex title
|
syn keyword htmlArg contained draggable hidden id is lang spellcheck style tabindex title translate
|
||||||
" Event-handler Attributes
|
" Event-handler Attributes
|
||||||
syn keyword htmlArg contained onabort onblur oncanplay oncanplaythrough onchange
|
syn keyword htmlArg contained onabort onblur oncanplay oncanplaythrough onchange
|
||||||
syn keyword htmlArg contained onclick oncontextmenu ondblclick ondrag ondragend ondragenter ondragleave ondragover
|
syn keyword htmlArg contained onclick oncontextmenu ondblclick ondrag ondragend ondragenter ondragleave ondragover
|
||||||
@@ -40,55 +95,102 @@ syn keyword htmlArg contained onmousewheel onpause onplay onplaying onprogress o
|
|||||||
syn keyword htmlArg contained onscroll onseeked onseeking onselect onshow onstalled onsubmit onsuspend ontimeupdate
|
syn keyword htmlArg contained onscroll onseeked onseeking onselect onshow onstalled onsubmit onsuspend ontimeupdate
|
||||||
syn keyword htmlArg contained onvolumechange onwaiting
|
syn keyword htmlArg contained onvolumechange onwaiting
|
||||||
" XML Attributes
|
" XML Attributes
|
||||||
syn keyword htmlArg contained xml:lang xml:space xml:base
|
syn keyword htmlArg contained xml:lang xml:space xml:base xmlns
|
||||||
" new features
|
" new features
|
||||||
" <body>
|
" <body>
|
||||||
syn keyword htmlArg contained onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload
|
syn keyword htmlArg contained onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload
|
||||||
syn keyword htmlArg contained onmessage onoffline ononline onpopstate onredo onresize onstorage onundo onunload
|
syn keyword htmlArg contained onmessage onoffline ononline onpopstate onredo onresize onstorage onundo onunload
|
||||||
" <video>, <audio>, <source>, <track>
|
" <video>, <audio>, <source>, <track>
|
||||||
syn keyword htmlArg contained autoplay preload controls loop poster media kind charset srclang track
|
syn keyword htmlArg contained autoplay preload controls loop poster media kind charset srclang track playsinline
|
||||||
" <form>, <input>, <button>
|
" <form>, <input>, <button>
|
||||||
syn keyword htmlArg contained form autocomplete autofocus list min max step
|
syn keyword htmlArg contained form autocomplete autofocus list min max step
|
||||||
syn keyword htmlArg contained formaction autofocus formenctype formmethod formtarget formnovalidate
|
syn keyword htmlArg contained formaction autofocus formenctype formmethod formtarget formnovalidate
|
||||||
|
syn keyword htmlArg contained required placeholder pattern
|
||||||
" <command>, <details>, <time>
|
" <command>, <details>, <time>
|
||||||
syn keyword htmlArg contained label icon open datetime pubdate
|
syn keyword htmlArg contained label icon open datetime-local pubdate
|
||||||
|
" <script>
|
||||||
|
syn keyword htmlArg contained async
|
||||||
|
" <content>
|
||||||
|
syn keyword htmlArg contained select
|
||||||
|
" <iframe>
|
||||||
|
syn keyword htmlArg contained seamless srcdoc sandbox allowfullscreen allowusermedia allowpaymentrequest allowpresentation
|
||||||
|
" <picture>
|
||||||
|
syn keyword htmlArg contained srcset sizes
|
||||||
|
" <a>
|
||||||
|
syn keyword htmlArg contained download media
|
||||||
|
" <script>, <style>
|
||||||
|
syn keyword htmlArg contained nonce
|
||||||
|
" <area>, <a>, <img>, <iframe>, <link>
|
||||||
|
syn keyword htmlArg contained referrerpolicy
|
||||||
|
" https://w3c.github.io/webappsec-subresource-integrity/#the-integrity-attribute
|
||||||
|
syn keyword htmlArg contained integrity crossorigin
|
||||||
|
" <link>
|
||||||
|
syn keyword htmlArg contained prefetch
|
||||||
|
" syn keyword htmlArg contained preload
|
||||||
|
" <img>
|
||||||
|
syn keyword htmlArg contained decoding
|
||||||
|
" https://w3c.github.io/selection-api/#extensions-to-globaleventhandlers
|
||||||
|
syn keyword htmlArg contained onselectstart onselectionchange
|
||||||
|
" https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/loading
|
||||||
|
syn keyword htmlArg contained loading
|
||||||
|
|
||||||
" Custom Data Attributes
|
" Custom Data Attributes
|
||||||
" http://dev.w3.org/html5/spec/Overview.html#custom-data-attribute
|
" http://w3c.github.io/html/single-page.html#embedding-custom-non-visible-data-with-the-data-attributes
|
||||||
syn match htmlArg "\<\(data(\-[a-z]\+)\+\)=" contained
|
syn match htmlArg "\<data[-.0-9_a-z]*-[-.0-9_a-z]*\>" contained
|
||||||
|
|
||||||
|
" Vendor Extension Attributes
|
||||||
|
" http://w3c.github.io/html/single-page.html#conformance-requirements-extensibility
|
||||||
|
syn match htmlArg "\<x[-.0-9_a-z]*-[-.0-9_a-z]*\>" contained
|
||||||
|
|
||||||
" Microdata
|
" Microdata
|
||||||
" http://dev.w3.org/html5/md/
|
" http://dev.w3.org/html5/md/
|
||||||
syn keyword htmlArg contained item itemid itemscope itemtype itemprop
|
syn keyword htmlArg contained itemid itemscope itemtype itemprop itemref
|
||||||
|
|
||||||
" RDFa
|
" SVG
|
||||||
" http://www.w3.org/TR/rdfa-syntax/#a_xhtmlrdfa_dtd
|
" http://www.w3.org/TR/SVG/
|
||||||
syn keyword htmlArg contained about typeof property resource content datatype rel rev
|
" Some common attributes from http://www.w3.org/TR/SVG/attindex.html
|
||||||
|
syn keyword htmlArg contained accent-height accumulate additive alphabetic amplitude arabic-form ascent attributeName attributeType azimuth
|
||||||
|
syn keyword htmlArg contained baseFrequency baseProfile bbox begin bias by
|
||||||
|
syn keyword htmlArg contained calcMode cap-height class clipPathUnits contentScriptType contentStyleType cx cy
|
||||||
|
syn keyword htmlArg contained d descent diffuseConstant divisor dur dx dy
|
||||||
|
syn keyword htmlArg contained edgeMode elevation end exponent externalResourcesRequired
|
||||||
|
syn keyword htmlArg contained fill filterRes filterUnits font-family font-size font-stretch font-style font-variant font-weight format format from fx fy
|
||||||
|
syn keyword htmlArg contained g1 g2 glyph-name glyphRef gradientTransform gradientUnits
|
||||||
|
syn keyword htmlArg contained hanging height horiz-adv-x horiz-origin-x horiz-origin-y
|
||||||
|
syn keyword htmlArg contained id ideographic in in2 intercept
|
||||||
|
syn keyword htmlArg contained k k1 k2 k3 k4 kernelMatrix kernelUnitLength keyPoints keySplines keyTimes
|
||||||
|
syn keyword htmlArg contained lang lengthAdjust limitingConeAngle local
|
||||||
|
syn keyword htmlArg contained markerHeight markerUnits markerWidth maskContentUnits maskUnits mathematical max media method min mode name
|
||||||
|
syn keyword htmlArg contained numOctaves
|
||||||
|
syn keyword htmlArg contained offset onabort onactivate onbegin onclick onend onerror onfocusin onfocusout onload onmousedown onmousemove onmouseout onmouseover onmouseup onrepeat onresize onscroll onunload onzoom operator order orient orientation origin overline-position overline-thickness
|
||||||
|
syn keyword htmlArg contained panose-1 path pathLength patternContentUnits patternTransform patternUnits points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits
|
||||||
|
syn keyword htmlArg contained r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate rx ry
|
||||||
|
syn keyword htmlArg contained scale seed slope spacing specularConstant specularExponent spreadMethod startOffset stdDeviation stemh stemv stitchTiles strikethrough-position strikethrough-thickness string surfaceScale systemLanguage
|
||||||
|
syn keyword htmlArg contained tableValues target targetX targetY textLength title to transform type
|
||||||
|
syn keyword htmlArg contained u1 u2 underline-position underline-thickness unicode unicode-range units-per-em
|
||||||
|
syn keyword htmlArg contained v-alphabetic v-hanging v-ideographic v-mathematical values version vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget
|
||||||
|
syn keyword htmlArg contained width widths
|
||||||
|
syn keyword htmlArg contained x x-height x1 x2 xChannelSelector xlink:actuate xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space
|
||||||
|
syn keyword htmlArg contained y y1 y2 yChannelSelector
|
||||||
|
syn keyword htmlArg contained z zoomAndPan
|
||||||
|
syn keyword htmlArg contained alignment-baseline baseline-shift clip-path clip-rule clip color-interpolation-filters color-interpolation color-profile color-rendering color cursor direction display dominant-baseline enable-background fill-opacity fill-rule fill filter flood-color flood-opacity font-family font-size-adjust font-size font-stretch font-style font-variant font-weight glyph-orientation-horizontal glyph-orientation-vertical image-rendering kerning letter-spacing lighting-color marker-end marker-mid marker-start mask opacity overflow pointer-events shape-rendering stop-color stop-opacity stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width stroke text-anchor text-decoration text-rendering unicode-bidi visibility word-spacing writing-mode
|
||||||
|
|
||||||
" WAI-ARIA States and Properties
|
" MathML attributes
|
||||||
" http://www.w3.org/TR/wai-aria/states_and_properties
|
" https://www.w3.org/TR/MathML3/chapter2.html#interf.toplevel.atts
|
||||||
syn keyword htmlArg contained role
|
syn keyword htmlArg contained accent accentunder actiontype align alignmentscope altimg altimg-height altimg-valign altimg-width alttext
|
||||||
" Global States and Properties
|
syn keyword htmlArg contained annotation-xml background base baseline bevelled cd cdgroup charalign charspacing close
|
||||||
syn match htmlArg contained "\<aria-\(atomic\|busy\|controls\|describedby\)\>"
|
syn keyword htmlArg contained closure color columnalign columnalignment columnlines columnspacing columnspan columnwidth crossout decimalpoint
|
||||||
syn match htmlArg contained "\<aria-\(disabled\|dropeffect\|flowto\|grabbed\)\>"
|
syn keyword htmlArg contained definitionURL denomalign depth display displaystyle edge encoding equalcolumns equalrows fence
|
||||||
syn match htmlArg contained "\<aria-\(haspopup\|hidden\|invalid\|label\)\>"
|
syn keyword htmlArg contained fontfamily fontsize fontstyle fontweight form frame framespacing groupalign height indentalign
|
||||||
syn match htmlArg contained "\<aria-\(labelledby\|live\|owns\|relevant\)\>"
|
syn keyword htmlArg contained indentalignfirst indentalignlast indentshift indentshiftfirst indentshiftlast indenttarget index infixlinebreakstyle integer largeop
|
||||||
|
syn keyword htmlArg contained leftoverhang length linebreak linebreakmultchar linebreakstyle lineleading linethickness location longdivstyle lquote
|
||||||
|
syn keyword htmlArg contained lspace ltr macros math mathbackground mathcolor mathsize mathvariant maxsize maxwidth
|
||||||
|
syn keyword htmlArg contained mediummathspace menclose minlabelspacing minsize mode movablelimits msgroup mslinethickness name nargs
|
||||||
|
syn keyword htmlArg contained newline notation numalign number occurrence open order other overflow position
|
||||||
|
syn keyword htmlArg contained rightoverhang role rowalign rowlines rowspacing rowspan rquote rspace schemaLocation scope
|
||||||
|
syn keyword htmlArg contained scriptlevel scriptminsize scriptsize scriptsizemultiplier selection separator separators shift side stackalign
|
||||||
|
syn keyword htmlArg contained stretchy subscriptshift superscriptshift symmetric thickmathspace thinmathspace type valign verythickmathspace verythinmathspace
|
||||||
|
syn keyword htmlArg contained veryverythickmathspace veryverythinmathspace voffset width xref
|
||||||
|
|
||||||
" Widget Attributes
|
|
||||||
syn match htmlArg contained "\<aria-\(autocomplete\|checked\|disabled\|expanded\)\>"
|
|
||||||
syn match htmlArg contained "\<aria-\(haspopup\|hidden\|invalid\|label\)\>"
|
|
||||||
syn match htmlArg contained "\<aria-\(level\|multiline\|multiselectable\|orientation\)\>"
|
|
||||||
syn match htmlArg contained "\<aria-\(pressed\|readonly\|required\|selected\)\>"
|
|
||||||
syn match htmlArg contained "\<aria-\(sort\|valuemax\|valuemin\|valuenow\|valuetext\|\)\>"
|
|
||||||
|
|
||||||
" Live Region Attributes
|
|
||||||
syn match htmlArg contained "\<aria-\(atomic\|busy\|live\|relevant\|\)\>"
|
|
||||||
|
|
||||||
" Drag-and-Drop attributes
|
|
||||||
syn match htmlArg contained "\<aria-\(dropeffect\|grabbed\)\>"
|
|
||||||
|
|
||||||
" Relationship Attributes
|
|
||||||
syn match htmlArg contained "\<aria-\(activedescendant\|controls\|describedby\|flowto\|\)\>"
|
|
||||||
syn match htmlArg contained "\<aria-\(labelledby\|owns\|posinset\|setsize\|\)\>"
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,90 +1,35 @@
|
|||||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jinja') == -1
|
||||||
|
|
||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: HTML (version 5.1)
|
" Language: HTML (version 5)
|
||||||
" SVG (SVG 1.1 Second Edition)
|
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
|
||||||
" MathML (MathML 3.0 Second Edition)
|
" URL: http://rm.blog.br/vim/syntax/html.vim
|
||||||
" Last Change: 2017 Mar 07
|
" Last Change: 2009 Aug 19
|
||||||
" License: Public domain
|
" License: Public domain
|
||||||
" (but let me know if you like :) )
|
" (but let me know if you like :) )
|
||||||
"
|
"
|
||||||
" Note: This file just add new tags from HTML 5
|
" Note: This file just adds the new tags from HTML 5
|
||||||
" and don't replace default html.vim syntax file
|
" and don't replace default html.vim syntax file
|
||||||
"
|
"
|
||||||
" Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com )
|
" Modified: othree <othree@gmail.com>
|
||||||
" Changes: update to Draft 2016 Jan 13
|
" Changes: update to Draft 28 August 2010
|
||||||
" add microdata Attributes
|
" add complete new attributes
|
||||||
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
|
" add wai-aria attributes
|
||||||
" URL: http://rm.blog.br/vim/syntax/html.vim
|
" add microdata attributes
|
||||||
" Modified: htdebeer <H.T.de.Beer@gmail.com>
|
" add rdfa attributes
|
||||||
" Changes: add common SVG elements and attributes for inline SVG
|
|
||||||
|
|
||||||
" Patch 7.4.1142
|
|
||||||
if has("patch-7.4-1142")
|
|
||||||
if has("win32")
|
|
||||||
syn iskeyword @,48-57,_,128-167,224-235,-
|
|
||||||
else
|
|
||||||
syn iskeyword @,48-57,_,192-255,-
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
syn keyword htmlTagName contained script
|
||||||
" HTML 5 tags
|
" HTML 5 tags
|
||||||
syn keyword htmlTagName contained article aside audio canvas command
|
syn keyword htmlTagName contained article aside audio canvas command
|
||||||
syn keyword htmlTagName contained datalist details dialog embed figcaption figure footer
|
syn keyword htmlTagName contained datalist details dialog embed figcaption figure footer
|
||||||
syn keyword htmlTagName contained header hgroup keygen main mark meter menu menuitem nav output
|
syn keyword htmlTagName contained header hgroup keygen mark meter menu nav output
|
||||||
syn keyword htmlTagName contained progress ruby rt rp rb rtc section source summary time track video data
|
syn keyword htmlTagName contained progress time ruby rt rp section source summary time track video wbr
|
||||||
syn keyword htmlTagName contained template content shadow slot
|
|
||||||
syn keyword htmlTagName contained wbr bdi
|
|
||||||
syn keyword htmlTagName contained picture
|
|
||||||
|
|
||||||
" SVG tags
|
|
||||||
" http://www.w3.org/TR/SVG/
|
|
||||||
" as found in http://www.w3.org/TR/SVG/eltindex.html
|
|
||||||
syn keyword htmlTagName contained svg
|
|
||||||
syn keyword htmlTagName contained altGlyph altGlyphDef altGlyphItem
|
|
||||||
syn keyword htmlTagName contained animate animateColor animateMotion animateTransform
|
|
||||||
syn keyword htmlTagName contained circle ellipse rect line polyline polygon image path
|
|
||||||
syn keyword htmlTagName contained clipPath color-profile cursor
|
|
||||||
syn keyword htmlTagName contained defs desc g symbol view use switch foreignObject
|
|
||||||
syn keyword htmlTagName contained filter feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence
|
|
||||||
syn keyword htmlTagName contained font font-face font-face-format font-face-name font-face-src font-face-uri
|
|
||||||
syn keyword htmlTagName contained glyph glyphRef hkern
|
|
||||||
syn keyword htmlTagName contained linearGradient marker mask pattern radialGradient set stop
|
|
||||||
syn keyword htmlTagName contained missing-glyph mpath
|
|
||||||
syn keyword htmlTagName contained text textPath tref tspan vkern
|
|
||||||
syn keyword htmlTagName contained metadata title
|
|
||||||
|
|
||||||
" MathML tags
|
|
||||||
" https://www.w3.org/TR/MathML3/appendixi.html#index.elem
|
|
||||||
syn keyword htmlTagName contained abs and annotation annotation-xml apply approx arccos arccosh arccot arccoth
|
|
||||||
syn keyword htmlTagName contained arccsc arccsch arcsec arcsech arcsin arcsinh arctan arctanh arg bind
|
|
||||||
syn keyword htmlTagName contained bvar card cartesianproduct cbytes ceiling cerror ci cn codomain complexes
|
|
||||||
syn keyword htmlTagName contained compose condition conjugate cos cosh cot coth cs csc csch
|
|
||||||
syn keyword htmlTagName contained csymbol curl declare degree determinant diff divergence divide domain domainofapplication
|
|
||||||
syn keyword htmlTagName contained emptyset eq equivalent eulergamma exists exp exponentiale factorial factorof false
|
|
||||||
syn keyword htmlTagName contained floor fn forall gcd geq grad gt ident image imaginary
|
|
||||||
syn keyword htmlTagName contained imaginaryi implies in infinity int integers intersect interval inverse lambda
|
|
||||||
syn keyword htmlTagName contained laplacian lcm leq limit list ln log logbase lowlimit lt
|
|
||||||
syn keyword htmlTagName contained maction maligngroup malignmark math matrix matrixrow max mean median menclose
|
|
||||||
syn keyword htmlTagName contained merror mfenced mfrac mglyph mi mi" min minus mlabeledtr mlongdiv
|
|
||||||
syn keyword htmlTagName contained mmultiscripts mn mo mode moment momentabout mover mpadded mphantom mprescripts
|
|
||||||
syn keyword htmlTagName contained mroot mrow ms mscarries mscarry msgroup msline mspace msqrt msrow
|
|
||||||
syn keyword htmlTagName contained mstack mstyle msub msubsup msup mtable mtd mtext mtr munder
|
|
||||||
syn keyword htmlTagName contained munderover naturalnumbers neq none not notanumber notin notprsubset notsubset or
|
|
||||||
syn keyword htmlTagName contained otherwise outerproduct partialdiff pi piece piecewise plus power primes product
|
|
||||||
syn keyword htmlTagName contained prsubset quotient rationals real reals reln rem root scalarproduct sdev
|
|
||||||
syn keyword htmlTagName contained sec sech selector semantics sep set setdiff share sin sinh
|
|
||||||
syn keyword htmlTagName contained span subset sum tan tanh tendsto times transpose true union
|
|
||||||
syn keyword htmlTagName contained uplimit variance vector vectorproduct xor
|
|
||||||
|
|
||||||
" Custom Element
|
|
||||||
syn match htmlTagName contained "\<[a-z][-.0-9_a-z]*-[-.0-9_a-z]*\>"
|
|
||||||
syn match htmlTagName contained "[.0-9_a-z]\@<=-[-.0-9_a-z]*\>"
|
|
||||||
|
|
||||||
" HTML 5 arguments
|
" HTML 5 arguments
|
||||||
" Core Attributes
|
" Core Attributes
|
||||||
syn keyword htmlArg contained accesskey class contenteditable contextmenu dir
|
syn keyword htmlArg contained accesskey class contenteditable contextmenu dir
|
||||||
syn keyword htmlArg contained draggable hidden id is lang spellcheck style tabindex title translate
|
syn keyword htmlArg contained draggable hidden id lang spellcheck style tabindex title
|
||||||
" Event-handler Attributes
|
" Event-handler Attributes
|
||||||
syn keyword htmlArg contained onabort onblur oncanplay oncanplaythrough onchange
|
syn keyword htmlArg contained onabort onblur oncanplay oncanplaythrough onchange
|
||||||
syn keyword htmlArg contained onclick oncontextmenu ondblclick ondrag ondragend ondragenter ondragleave ondragover
|
syn keyword htmlArg contained onclick oncontextmenu ondblclick ondrag ondragend ondragenter ondragleave ondragover
|
||||||
@@ -95,102 +40,55 @@ syn keyword htmlArg contained onmousewheel onpause onplay onplaying onprogress o
|
|||||||
syn keyword htmlArg contained onscroll onseeked onseeking onselect onshow onstalled onsubmit onsuspend ontimeupdate
|
syn keyword htmlArg contained onscroll onseeked onseeking onselect onshow onstalled onsubmit onsuspend ontimeupdate
|
||||||
syn keyword htmlArg contained onvolumechange onwaiting
|
syn keyword htmlArg contained onvolumechange onwaiting
|
||||||
" XML Attributes
|
" XML Attributes
|
||||||
syn keyword htmlArg contained xml:lang xml:space xml:base xmlns
|
syn keyword htmlArg contained xml:lang xml:space xml:base
|
||||||
" new features
|
" new features
|
||||||
" <body>
|
" <body>
|
||||||
syn keyword htmlArg contained onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload
|
syn keyword htmlArg contained onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload
|
||||||
syn keyword htmlArg contained onmessage onoffline ononline onpopstate onredo onresize onstorage onundo onunload
|
syn keyword htmlArg contained onmessage onoffline ononline onpopstate onredo onresize onstorage onundo onunload
|
||||||
" <video>, <audio>, <source>, <track>
|
" <video>, <audio>, <source>, <track>
|
||||||
syn keyword htmlArg contained autoplay preload controls loop poster media kind charset srclang track playsinline
|
syn keyword htmlArg contained autoplay preload controls loop poster media kind charset srclang track
|
||||||
" <form>, <input>, <button>
|
" <form>, <input>, <button>
|
||||||
syn keyword htmlArg contained form autocomplete autofocus list min max step
|
syn keyword htmlArg contained form autocomplete autofocus list min max step
|
||||||
syn keyword htmlArg contained formaction autofocus formenctype formmethod formtarget formnovalidate
|
syn keyword htmlArg contained formaction autofocus formenctype formmethod formtarget formnovalidate
|
||||||
syn keyword htmlArg contained required placeholder pattern
|
|
||||||
" <command>, <details>, <time>
|
" <command>, <details>, <time>
|
||||||
syn keyword htmlArg contained label icon open datetime-local pubdate
|
syn keyword htmlArg contained label icon open datetime pubdate
|
||||||
" <script>
|
|
||||||
syn keyword htmlArg contained async
|
|
||||||
" <content>
|
|
||||||
syn keyword htmlArg contained select
|
|
||||||
" <iframe>
|
|
||||||
syn keyword htmlArg contained seamless srcdoc sandbox allowfullscreen allowusermedia allowpaymentrequest allowpresentation
|
|
||||||
" <picture>
|
|
||||||
syn keyword htmlArg contained srcset sizes
|
|
||||||
" <a>
|
|
||||||
syn keyword htmlArg contained download media
|
|
||||||
" <script>, <style>
|
|
||||||
syn keyword htmlArg contained nonce
|
|
||||||
" <area>, <a>, <img>, <iframe>, <link>
|
|
||||||
syn keyword htmlArg contained referrerpolicy
|
|
||||||
" https://w3c.github.io/webappsec-subresource-integrity/#the-integrity-attribute
|
|
||||||
syn keyword htmlArg contained integrity crossorigin
|
|
||||||
" <link>
|
|
||||||
syn keyword htmlArg contained prefetch
|
|
||||||
" syn keyword htmlArg contained preload
|
|
||||||
" <img>
|
|
||||||
syn keyword htmlArg contained decoding
|
|
||||||
" https://w3c.github.io/selection-api/#extensions-to-globaleventhandlers
|
|
||||||
syn keyword htmlArg contained onselectstart onselectionchange
|
|
||||||
" https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/loading
|
|
||||||
syn keyword htmlArg contained loading
|
|
||||||
|
|
||||||
" Custom Data Attributes
|
" Custom Data Attributes
|
||||||
" http://w3c.github.io/html/single-page.html#embedding-custom-non-visible-data-with-the-data-attributes
|
" http://dev.w3.org/html5/spec/Overview.html#custom-data-attribute
|
||||||
syn match htmlArg "\<data[-.0-9_a-z]*-[-.0-9_a-z]*\>" contained
|
syn match htmlArg "\<\(data(\-[a-z]\+)\+\)=" contained
|
||||||
|
|
||||||
" Vendor Extension Attributes
|
|
||||||
" http://w3c.github.io/html/single-page.html#conformance-requirements-extensibility
|
|
||||||
syn match htmlArg "\<x[-.0-9_a-z]*-[-.0-9_a-z]*\>" contained
|
|
||||||
|
|
||||||
" Microdata
|
" Microdata
|
||||||
" http://dev.w3.org/html5/md/
|
" http://dev.w3.org/html5/md/
|
||||||
syn keyword htmlArg contained itemid itemscope itemtype itemprop itemref
|
syn keyword htmlArg contained item itemid itemscope itemtype itemprop
|
||||||
|
|
||||||
" SVG
|
" RDFa
|
||||||
" http://www.w3.org/TR/SVG/
|
" http://www.w3.org/TR/rdfa-syntax/#a_xhtmlrdfa_dtd
|
||||||
" Some common attributes from http://www.w3.org/TR/SVG/attindex.html
|
syn keyword htmlArg contained about typeof property resource content datatype rel rev
|
||||||
syn keyword htmlArg contained accent-height accumulate additive alphabetic amplitude arabic-form ascent attributeName attributeType azimuth
|
|
||||||
syn keyword htmlArg contained baseFrequency baseProfile bbox begin bias by
|
|
||||||
syn keyword htmlArg contained calcMode cap-height class clipPathUnits contentScriptType contentStyleType cx cy
|
|
||||||
syn keyword htmlArg contained d descent diffuseConstant divisor dur dx dy
|
|
||||||
syn keyword htmlArg contained edgeMode elevation end exponent externalResourcesRequired
|
|
||||||
syn keyword htmlArg contained fill filterRes filterUnits font-family font-size font-stretch font-style font-variant font-weight format format from fx fy
|
|
||||||
syn keyword htmlArg contained g1 g2 glyph-name glyphRef gradientTransform gradientUnits
|
|
||||||
syn keyword htmlArg contained hanging height horiz-adv-x horiz-origin-x horiz-origin-y
|
|
||||||
syn keyword htmlArg contained id ideographic in in2 intercept
|
|
||||||
syn keyword htmlArg contained k k1 k2 k3 k4 kernelMatrix kernelUnitLength keyPoints keySplines keyTimes
|
|
||||||
syn keyword htmlArg contained lang lengthAdjust limitingConeAngle local
|
|
||||||
syn keyword htmlArg contained markerHeight markerUnits markerWidth maskContentUnits maskUnits mathematical max media method min mode name
|
|
||||||
syn keyword htmlArg contained numOctaves
|
|
||||||
syn keyword htmlArg contained offset onabort onactivate onbegin onclick onend onerror onfocusin onfocusout onload onmousedown onmousemove onmouseout onmouseover onmouseup onrepeat onresize onscroll onunload onzoom operator order orient orientation origin overline-position overline-thickness
|
|
||||||
syn keyword htmlArg contained panose-1 path pathLength patternContentUnits patternTransform patternUnits points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits
|
|
||||||
syn keyword htmlArg contained r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate rx ry
|
|
||||||
syn keyword htmlArg contained scale seed slope spacing specularConstant specularExponent spreadMethod startOffset stdDeviation stemh stemv stitchTiles strikethrough-position strikethrough-thickness string surfaceScale systemLanguage
|
|
||||||
syn keyword htmlArg contained tableValues target targetX targetY textLength title to transform type
|
|
||||||
syn keyword htmlArg contained u1 u2 underline-position underline-thickness unicode unicode-range units-per-em
|
|
||||||
syn keyword htmlArg contained v-alphabetic v-hanging v-ideographic v-mathematical values version vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget
|
|
||||||
syn keyword htmlArg contained width widths
|
|
||||||
syn keyword htmlArg contained x x-height x1 x2 xChannelSelector xlink:actuate xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space
|
|
||||||
syn keyword htmlArg contained y y1 y2 yChannelSelector
|
|
||||||
syn keyword htmlArg contained z zoomAndPan
|
|
||||||
syn keyword htmlArg contained alignment-baseline baseline-shift clip-path clip-rule clip color-interpolation-filters color-interpolation color-profile color-rendering color cursor direction display dominant-baseline enable-background fill-opacity fill-rule fill filter flood-color flood-opacity font-family font-size-adjust font-size font-stretch font-style font-variant font-weight glyph-orientation-horizontal glyph-orientation-vertical image-rendering kerning letter-spacing lighting-color marker-end marker-mid marker-start mask opacity overflow pointer-events shape-rendering stop-color stop-opacity stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width stroke text-anchor text-decoration text-rendering unicode-bidi visibility word-spacing writing-mode
|
|
||||||
|
|
||||||
" MathML attributes
|
" WAI-ARIA States and Properties
|
||||||
" https://www.w3.org/TR/MathML3/chapter2.html#interf.toplevel.atts
|
" http://www.w3.org/TR/wai-aria/states_and_properties
|
||||||
syn keyword htmlArg contained accent accentunder actiontype align alignmentscope altimg altimg-height altimg-valign altimg-width alttext
|
syn keyword htmlArg contained role
|
||||||
syn keyword htmlArg contained annotation-xml background base baseline bevelled cd cdgroup charalign charspacing close
|
" Global States and Properties
|
||||||
syn keyword htmlArg contained closure color columnalign columnalignment columnlines columnspacing columnspan columnwidth crossout decimalpoint
|
syn match htmlArg contained "\<aria-\(atomic\|busy\|controls\|describedby\)\>"
|
||||||
syn keyword htmlArg contained definitionURL denomalign depth display displaystyle edge encoding equalcolumns equalrows fence
|
syn match htmlArg contained "\<aria-\(disabled\|dropeffect\|flowto\|grabbed\)\>"
|
||||||
syn keyword htmlArg contained fontfamily fontsize fontstyle fontweight form frame framespacing groupalign height indentalign
|
syn match htmlArg contained "\<aria-\(haspopup\|hidden\|invalid\|label\)\>"
|
||||||
syn keyword htmlArg contained indentalignfirst indentalignlast indentshift indentshiftfirst indentshiftlast indenttarget index infixlinebreakstyle integer largeop
|
syn match htmlArg contained "\<aria-\(labelledby\|live\|owns\|relevant\)\>"
|
||||||
syn keyword htmlArg contained leftoverhang length linebreak linebreakmultchar linebreakstyle lineleading linethickness location longdivstyle lquote
|
|
||||||
syn keyword htmlArg contained lspace ltr macros math mathbackground mathcolor mathsize mathvariant maxsize maxwidth
|
|
||||||
syn keyword htmlArg contained mediummathspace menclose minlabelspacing minsize mode movablelimits msgroup mslinethickness name nargs
|
|
||||||
syn keyword htmlArg contained newline notation numalign number occurrence open order other overflow position
|
|
||||||
syn keyword htmlArg contained rightoverhang role rowalign rowlines rowspacing rowspan rquote rspace schemaLocation scope
|
|
||||||
syn keyword htmlArg contained scriptlevel scriptminsize scriptsize scriptsizemultiplier selection separator separators shift side stackalign
|
|
||||||
syn keyword htmlArg contained stretchy subscriptshift superscriptshift symmetric thickmathspace thinmathspace type valign verythickmathspace verythinmathspace
|
|
||||||
syn keyword htmlArg contained veryverythickmathspace veryverythinmathspace voffset width xref
|
|
||||||
|
|
||||||
|
" Widget Attributes
|
||||||
|
syn match htmlArg contained "\<aria-\(autocomplete\|checked\|disabled\|expanded\)\>"
|
||||||
|
syn match htmlArg contained "\<aria-\(haspopup\|hidden\|invalid\|label\)\>"
|
||||||
|
syn match htmlArg contained "\<aria-\(level\|multiline\|multiselectable\|orientation\)\>"
|
||||||
|
syn match htmlArg contained "\<aria-\(pressed\|readonly\|required\|selected\)\>"
|
||||||
|
syn match htmlArg contained "\<aria-\(sort\|valuemax\|valuemin\|valuenow\|valuetext\|\)\>"
|
||||||
|
|
||||||
|
" Live Region Attributes
|
||||||
|
syn match htmlArg contained "\<aria-\(atomic\|busy\|live\|relevant\|\)\>"
|
||||||
|
|
||||||
|
" Drag-and-Drop attributes
|
||||||
|
syn match htmlArg contained "\<aria-\(dropeffect\|grabbed\)\>"
|
||||||
|
|
||||||
|
" Relationship Attributes
|
||||||
|
syn match htmlArg contained "\<aria-\(activedescendant\|controls\|describedby\|flowto\|\)\>"
|
||||||
|
syn match htmlArg contained "\<aria-\(labelledby\|owns\|posinset\|setsize\|\)\>"
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user