Преглед на файлове

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

tags/v2019.9.0
adam j hartz преди 10 месеца
родител
ревизия
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'

Зареждане…
Отказ
Запис