diff options
author | carson fire <carsonfire@gmail.com> | 2012-01-14 00:00:00 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-01-18 09:27:07 +0100 |
commit | 1735634ec0cf0bc222457e36f3d5cb46acba79cf (patch) | |
tree | e054a08e77fc7b9985153707fe6105cce7198013 /spmd.vim | |
download | fountain.vim-1.tar.gz |
Initial upload1
Diffstat (limited to 'spmd.vim')
-rw-r--r-- | spmd.vim | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/spmd.vim b/spmd.vim new file mode 100644 index 0000000..0067cdc --- /dev/null +++ b/spmd.vim @@ -0,0 +1,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 + |