Skip to content
Browse files

Thrift: Fix field definition so comments work again

Stop matching the blank space at the beginning of the line
as the beginning of a field.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Thrift.tmbundle@10089 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent cd60044 commit c13214e2de16c8adb732a46476d8eb66b6a1b67d @kballard kballard committed Jul 1, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 Syntaxes/Thrift.tmLanguage
View
6 Syntaxes/Thrift.tmLanguage
@@ -598,10 +598,10 @@
<dict>
<key>begin</key>
<string>(?x)
- (?&lt;![^\s{(])
- \s*(\d+\s*:)?\s*
+ (?&lt;![^\s{(])(?=\S)
+ (\d+\s*:)?\s*
(?: (required|optional)(?!\S)\s*
- | (?=.)(?!=required|optional|\d)
+ | (?=\S)(?!=required|optional|\d)
)</string>
<key>beginCaptures</key>
<dict>

0 comments on commit c13214e

Please sign in to comment.
Something went wrong with that request. Please try again.