diff --git a/grammars/c.cson b/grammars/c.cson index c04ce5e..f99de68 100644 --- a/grammars/c.cson +++ b/grammars/c.cson @@ -94,23 +94,62 @@ ] } { - 'begin': '^\\s*((#)\\s*(error|warning))\\b' - 'captures': + 'begin': '^\\s*((#)\\s*(error|warning))\\b\\s*' + 'beginCaptures': '1': 'name': 'keyword.control.directive.diagnostic.$3.c' '2': 'name': 'punctuation.definition.directive.c' - 'end': '(?