Permalink
Browse files

scene and section folding

  • Loading branch information...
1 parent d392eb6 commit 43e06dd2431904802b49fe202a4f19c6039c8e6f @dunn committed Jun 4, 2012
Showing with 18 additions and 6 deletions.
  1. +2 −0 README.markdown
  2. +16 −6 fountain-clm.plist
View
@@ -12,6 +12,8 @@ Nima Yousefi's [regular expressions for Fountain](https://github.com/nyousefi/Fo
- _Scene Navigation:_ Scene headings and sections are tracked and collected in the function pull-down menu of the navigation bar.
+- _Scene and Section Folding:_ Scenes and sections can be collapsed to save screen space.
+
## Installation
If you're using TextWrangler, move `fountain-clm.plist` to `~/Library/Application Support/TextWrangler/Language Modules/`
View
@@ -91,13 +91,23 @@
<string>
<![CDATA[
(?x-i:
+ ^\s*\r+?
(?P<function>^(\.*)
- (?P<function_name>(?(?<=(\.))[A-Za-z0-9-\ \'\"]+$
- | ([iI][nN][tT]\.*
- | [eE][xX][tT]\.*
- | \#+\ )
- .*$)
- ))
+ (?P<function_name>(?(?<=(\.))[A-Za-z0-9-\ \'\"]+$
+ | ([iI][nN][tT]\.*
+ | [eE][xX][tT]\.*
+ | \#+\ )
+ .*$)
+ )
+ (?s:.*?\r*?(?=\r*?
+ ( ^[iI][nN][tT]
+ | ^[eE][xX][tT]
+ | ^\#+\
+ | ^\.
+ | \z)
+ )
+ )
+ )
)
]]>
</string>

0 comments on commit 43e06dd

Please sign in to comment.