소스 검색

vim syntax highlighting: support for @{...} python and for <comment> tags

tags/v2019.9.0
adam j hartz 11 달 전
부모
커밋
504eb1b1d8
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. +4
    -0
      vim/syntax/catsoop.vim

+ 4
- 0
vim/syntax/catsoop.vim 파일 보기

@@ -14,12 +14,16 @@ unlet b:current_syntax
syntax include @Python syntax/python.vim
syntax region pythonCode matchgroup=pythonTag start="<python>" end="</python>" containedin=@Markdown contains=@Python
syntax region pythonCodeQuestion matchgroup=questionTag start="<question [^>]*>" end="</question>" containedin=@Markdown contains=@Python
syntax region pythonShort start="@{" end="}" containedin=@Markdown contains=@Python

let b:current_syntax=''
unlet b:current_syntax
syntax include @TeX syntax/tex.vim
syntax region latexDisplayMath start="\$\$" end="\$\$" keepend containedin=@Markdown contains=@TeX

syntax region catsoopComment start="<comment>" end="</comment>"

hi link catsoopComment Comment
hi link pythonTag htmlTag
hi link questionTag htmlTag
let b:current_syntax = 'catsoop'

불러오는 중...
취소
저장