File: import.vim

package info (click to toggle)
vim-vimtex 2.17-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,844 kB
  • sloc: makefile: 360; python: 103
file content (20 lines) | stat: -rw-r--r-- 537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
" vimtex - LaTeX plugin for Vim
"
" Maintainer: Karl Yngve LervÄg
" Email:      karl.yngve@gmail.com
"

function! vimtex#syntax#p#import#load(cfg) abort " {{{1
  syntax match texCmdImport "\%#=1\\\%(sub\)\?import\>"
        \ nextgroup=texImportFileArg skipwhite skipnl

  call vimtex#syntax#core#new_arg('texImportFileArg', #{
        \ contains: '@NoSpell,texCmd,texComment',
        \ next: 'texFileArg',
        \})

  highlight def link texCmdImport texCmdInput
  highlight def link texImportFileArg texFileArg
endfunction

" }}}1