, 나는 ~/.vim/syntax/html.vim
에 $VIMRUNTIME/syntax/html.vim
의 사본을 넣어 그것을 수정 : (이 그냥이 특정 오류를 잡는다 일치하지 않는
38c38
< syn match htmlValue contained "=[\t ]*[^'" \t>][^ \t>]*"hs=s+1 contains=javaScriptExpression,@htmlPreproc
---
> syn match htmlValue contained /=[\t ]*\%('\%(\\.\|[^\\']\)*'\|"\%(\\.\|[^\\"]\)*\|[^'" \t>]*\)/hs=s+1 contains=htmlString,javaScriptExpression,@htmlPreproc
40c40
< syn region htmlTag start=+<[^/]+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster
---
> syn region htmlTag start=+<[^/]+ end=+>+ contains=htmlTagN,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster
43a44
> syn match htmlTagError contained /['"].*/
168c169
< syn region htmlScriptTag contained start=+<script+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent
---
> syn region htmlScriptTag contained start=+<script+ end=+>+ contains=htmlTagN,htmlArg,htmlValue,htmlTagError,htmlEvent
을 따옴표), 그래서 나는 여전히 엄격한 html을위한 더 나은 구문 파일에 매우 관심이있다.