aboutsummaryrefslogtreecommitdiffstats
path: root/spmd.vim
blob: 0067cdc70304405e78de66d239798b6c22aeb362 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
" Vim syntax file
" Language:     Screenplay Markdown (provisional)
" Maintainer:	Carson Fire
" Filenames:    *.spmd
" Last Change:	2012 January 13

if exists("b:current_syntax")
  finish
endif

runtime! syntax/markdown.vim
unlet! b:current_syntax

syn case match

syn region spmdSetting start="^\(INT\.\|EXT\.\)" end="$" 
syn region spmdDialogue start="^[' A-ZÅÄÖ]*$" end="^$"
syn region spmdDialogue matchgroup=spmdCharacter start="^[' A-ZÅÄÖ]*$" end="^$" contains=spmdParenthetical,  spmdJoint
syn match spmdParenthetical "^\((.*)\)$" contained
syn match spmdJoint "||\n[' A-ZÅÄÖ]*$" contained
syn match spmdCentered "^>[^$]*<"
syn match spmdTransition ".*CUT TO:"
syn match spmdSetting ".*POV$"
syn match spmdSetting "OPENING TITLES"

hi def link spmdCharacter               tag 
hi def link spmdDialogue                string
hi def link spmdParenthetical           function
hi def link spmdJoint					spmdCharacter
hi def link spmdSetting                 boolean
hi def link spmdTransition				conditional
hi def link spmdDirection				comment
hi def link spmdCentered				title