From 850c906ef990d9616ccd93c59702e36c74a56f53 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Thu, 3 Jul 2008 21:18:48 +0000 Subject: [PATCH] Thrift: Fix a few issues raised in the review - Comment on the /$ ^/ pattern to explain it should never end - comment.line scopes should include trailing newline - Fix the #field repository item to work properly in some cases git-svn-id: http://svn.textmate.org/trunk/Review/Bundles/Thrift.tmbundle@10125 dfb7d73b-c2ec-0310-8fea-fb051d288c6d --- Syntaxes/Thrift.tmLanguage | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Syntaxes/Thrift.tmLanguage b/Syntaxes/Thrift.tmLanguage index e6ecaa1..570b386 100644 --- a/Syntaxes/Thrift.tmLanguage +++ b/Syntaxes/Thrift.tmLanguage @@ -144,7 +144,7 @@ comment begin the definition list end - $ ^ + (?x)$.^ # this regex should never end patterns @@ -686,7 +686,7 @@ match - (#).* + #.*\n? name comment.line.number-sign.thrift @@ -700,7 +700,7 @@ match - (//).* + //.*\n? name comment.line.double-slash.thrift @@ -777,7 +777,7 @@ end - [,;]|$ + [,;]|(?=\))|$ endCaptures 0 @@ -820,14 +820,14 @@ end - (?=[,;])|$ + (?=[,;]|\))|$ patterns begin = end - [,;]|$ + (?=[,;]|\))|$ patterns