From 15c2564f4bd5c5129a2604d4a417ef3700c421db Mon Sep 17 00:00:00 2001 From: Eshwar Andhavarapu Date: Fri, 24 Jun 2016 10:16:44 +0200 Subject: [PATCH] Fixes # being shown as comments in sql # and ## are used to designate temporary tables in SQL However, it is incorrectly highlighted as comments currently. Therefore, I have for testing purposes... ahem... commented out the # syntax highlighting in the comments section. Fixes Issue #27 --- grammars/sql.cson | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/grammars/sql.cson b/grammars/sql.cson index b957b76..8ef1a2a 100644 --- a/grammars/sql.cson +++ b/grammars/sql.cson @@ -247,23 +247,23 @@ } ] } - { - 'begin': '(^[ \\t]+)?(?=#)' - 'beginCaptures': - '1': - 'name': 'punctuation.whitespace.comment.leading.sql' - 'end': '(?!\\G)' - 'patterns': [ - { - 'begin': '#' - 'beginCaptures': - '0': - 'name': 'punctuation.definition.comment.sql' - 'end': '\\n' - 'name': 'comment.line.number-sign.sql' - } - ] - } + # { + # 'begin': '(^[ \\t]+)?(?=#)' + # 'beginCaptures': + # '1': + # 'name': 'punctuation.whitespace.comment.leading.sql' + # 'end': '(?!\\G)' + # 'patterns': [ + # { + # 'begin': '#' + # 'beginCaptures': + # '0': + # 'name': 'punctuation.definition.comment.sql' + # 'end': '\\n' + # 'name': 'comment.line.number-sign.sql' + # } + # ] + # } { 'begin': '/\\*' 'captures':