From e59bbecd2d0732015c2f3e98ef35f3be8e67236f Mon Sep 17 00:00:00 2001 From: Michael Sheets Date: Thu, 3 Jul 2008 09:33:30 +0000 Subject: [PATCH] Adding various punctuation scopes. git-svn-id: http://svn.textmate.org/trunk/Review/Bundles/Thrift.tmbundle@10120 dfb7d73b-c2ec-0310-8fea-fb051d288c6d --- Syntaxes/Thrift.tmLanguage | 204 ++++++++++++++++++++++++++++++++++++- 1 file changed, 202 insertions(+), 2 deletions(-) diff --git a/Syntaxes/Thrift.tmLanguage b/Syntaxes/Thrift.tmLanguage index 63b10b8..e6ecaa1 100644 --- a/Syntaxes/Thrift.tmLanguage +++ b/Syntaxes/Thrift.tmLanguage @@ -235,8 +235,24 @@ begin \{ + beginCaptures + + 0 + + name + punctuation.section.enum.begin.thrift + + end \} + endCaptures + + 0 + + name + punctuation.section.enum.end.thrift + + patterns @@ -295,8 +311,24 @@ begin \{ + beginCaptures + + 0 + + name + punctuation.section.senum.begin.thrift + + end \} + endCaptures + + 0 + + name + punctuation.section.senum.end.thrift + + patterns @@ -356,8 +388,24 @@ begin \{ + beginCaptures + + 0 + + name + punctuation.section.struct.begin.thrift + + end \} + endCaptures + + 0 + + name + punctuation.section.struct.end.thrift + + patterns @@ -397,8 +445,24 @@ begin \{ + beginCaptures + + 0 + + name + punctuation.section.exception.begin.thrift + + end \} + endCaptures + + 0 + + name + punctuation.section.exception.end.thrift + + patterns @@ -448,8 +512,24 @@ begin \{ + beginCaptures + + 0 + + name + punctuation.section.service.begin.thrift + + end \} + endCaptures + + 0 + + name + punctuation.section.service.end.thrift + + patterns @@ -501,8 +581,24 @@ begin \( + beginCaptures + + 0 + + name + punctuation.definition.arguments.begin.thrift + + end \) + endCaptures + + 0 + + name + punctuation.definition.arguments.end.thrift + + patterns @@ -533,8 +629,24 @@ begin \( + beginCaptures + + 0 + + name + punctuation.definition.arguments.begin.thrift + + end \) + endCaptures + + 0 + + name + punctuation.definition.arguments.end.thrift + + patterns @@ -565,30 +677,78 @@ patterns + captures + + 1 + + name + punctuation.definition.comment.thrift + + match - #.* + (#).* name comment.line.number-sign.thrift + captures + + 1 + + name + punctuation.definition.comment.thrift + + match - //.* + (//).* name comment.line.double-slash.thrift begin /\*\* + beginCaptures + + 0 + + name + punctuation.definition.comment.begin.thrift + + end \*/ + endCaptures + + 0 + + name + punctuation.definition.comment.end.thrift + + name comment.block.documentation.thrift begin /\* + beginCaptures + + 0 + + name + punctuation.definition.comment.begin.thrift + + end \*/ + endCaptures + + 0 + + name + punctuation.definition.comment.end.thrift + + name comment.block.thrift @@ -618,6 +778,14 @@ end [,;]|$ + endCaptures + + 0 + + name + punctuation.separator.fields.thrift + + name meta.field.thrift patterns @@ -757,8 +925,24 @@ begin \[ + beginCaptures + + 0 + + name + punctuation.definition.array.begin.thrift + + end \] + endCaptures + + 0 + + name + punctuation.definition.array.end.thrift + + name meta.array.thrift patterns @@ -776,8 +960,24 @@ begin \{ + beginCaptures + + 0 + + name + punctuation.definition.map.begin.thrift + + end \} + endCaptures + + 0 + + name + punctuation.definition.map.end.thrift + + name meta.map.thrift patterns