Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions syntax/twig.vim
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ endif

syntax case match

" ------------------------
" Enable basic HTML highlighting for static content
" ------------------------
syntax include @HTML syntax/html.vim
syntax region twigHTML start=+^+ end=+$+ contains=@HTML keepend

" Twig template built-in tags and parameters (without filter, macro, is and
" raw, they have special treatment)
syn keyword twigStatement containedin=twigVarBlock,twigTagBlock,twigNested contained and if else in not or recursive as import
Expand Down