From 1f4489248fbc27c67f0a037e73373c00f03a3677 Mon Sep 17 00:00:00 2001 From: Michael Sheets Date: Sun, 13 Nov 2011 16:18:33 -0600 Subject: [PATCH] Improve comment.line match. --- Syntaxes/Fortran - Modern.tmLanguage | 66 +++++++++++++++++++++------- 1 file changed, 50 insertions(+), 16 deletions(-) diff --git a/Syntaxes/Fortran - Modern.tmLanguage b/Syntaxes/Fortran - Modern.tmLanguage index c5ce31b..c86daa6 100644 --- a/Syntaxes/Fortran - Modern.tmLanguage +++ b/Syntaxes/Fortran - Modern.tmLanguage @@ -202,47 +202,81 @@ begin - (!-) + (^[ \t]+)?(?=!-) beginCaptures - 0 + 1 name - punctuation.definition.comment.fortran + punctuation.whitespace.comment.leading.ruby end - $\n? - name - comment.line.exclamation.mark.fortran.modern + (?!\G) patterns - match - \\\s*\n + begin + !- + beginCaptures + + 0 + + name + punctuation.definition.comment.fortran + + + end + \n + name + comment.line.exclamation.mark.fortran.modern + patterns + + + match + \\\s*\n + + begin - [!] + (^[ \t]+)?(?=!) beginCaptures - 0 + 1 name - punctuation.definition.comment.fortran + punctuation.whitespace.comment.leading.ruby end - $\n? - name - comment.line.exclamation.fortran.modern + (?!\G) patterns - match - \\\s*\n + begin + ! + beginCaptures + + 0 + + name + punctuation.definition.comment.fortran + + + end + \n + name + comment.line.exclamation.fortran.modern + patterns + + + match + \\\s*\n + +