From 90662167c35bc4dcd1623400c5e9f99136b95992 Mon Sep 17 00:00:00 2001 From: Michael Sheets Date: Sun, 13 Nov 2011 23:06:24 -0600 Subject: [PATCH] Improve comment.line match. --- Syntaxes/Eiffel.plist | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/Syntaxes/Eiffel.plist b/Syntaxes/Eiffel.plist index 79d5575..1e0807e 100644 --- a/Syntaxes/Eiffel.plist +++ b/Syntaxes/Eiffel.plist @@ -1,5 +1,5 @@ - + fileTypes @@ -13,18 +13,37 @@ patterns - captures + begin + (^[ \t]+)?(?=--) + beginCaptures 1 name - punctuation.definition.comment.eiffel + punctuation.whitespace.comment.leading.eiffel - match - (--).*$\n? - name - comment.line.double-dash.eiffel + end + (?!\G) + patterns + + + begin + -- + beginCaptures + + 0 + + name + punctuation.definition.comment.eiffel + + + end + \n + name + comment.line.double-dash.eiffel + + match