Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed 07074e1
  • Participants
  • Parent commits 1ff0315

Comments (0)

Files changed (1)

File vim/syntax/screenplay-text.vim

 " Last Change: Thu Jul  3 00:59:42 IDT 2008
 " Version: 0.0.1
 
+" Thanks to Andy Wokula for his help on:
+" https://groups.google.com/group/vim_use/browse_thread/thread/6c0906617d67864e/a21938c5df1d15cb?show_docid=a21938c5df1d15cb
+
 " Quit if syntax file is already loaded
 if version < 600
     syntax clear
     finish
 endif
 
-syntax match screenplayTextComment /<!--\_.\{-0,}-->/
-syntax match screenplayTextDescription /^ *\[\_.\{-0,}\]/
+syntax sync minlines=50
+
+" syntax match screenplayTextComment /<!--\_.\{-0,}-->/
+" syntax match screenplayTextDescription /^ *\[\_.\{-0,}\]/
+syntax region screenplayTextComment start="<!--" end="-->"
+syntax region screenplayTextDescription start="^ *\[" end="]"
+
 syntax match screenplayTextAddress /^\(+\{2,\}\|[^[:+]*\):/ contained nextgroup=screenplayTextInnerDesc
 syntax match screenplayTextInnerDesc /\[\_.\{-0,}\]/ contained nextgroup=screenplayTextInnerDesc
 
 hi def link screenplayTextDescription PreProc
 hi def link screenplayTextInnerDesc PreProc
 hi def screenplayTextAddress      term=bold cterm=bold gui=bold
-
-let b:current_syntax="ScreenplayText"
-
-runtime! syntax/xml.vim