Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 165ae83

Browse files
committed
SQL: Change --sql hint to be at least -- sql instead
Since --sql is not a valid comment and will create errors if applying blindly.
1 parent 3817807 commit 165ae83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

grammars/php.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,7 +2759,7 @@
27592759
'match': '\\\\(?:\\\\(?:\\\\[\\\\\']?|[^\'])|.)'
27602760
'name': 'constant.character.escape.php'
27612761
'sql-string-double-quoted':
2762-
'begin': '(?i:"(?=\\s*\\(?\\s*(--\\s*SQL|SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\b))'
2762+
'begin': '(?i:"(?=\\s*\\(?\\s*(--\\s+SQL|SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\b))'
27632763
'beginCaptures':
27642764
'0':
27652765
'name': 'punctuation.definition.string.begin.php'
@@ -2828,7 +2828,7 @@
28282828
}
28292829
]
28302830
'sql-string-single-quoted':
2831-
'begin': '(?i:\'(?=\\s*\\(?\\s*(--\\s*SQL|SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\b))'
2831+
'begin': '(?i:\'(?=\\s*\\(?\\s*(--\\s+SQL|SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\b))'
28322832
'beginCaptures':
28332833
'0':
28342834
'name': 'punctuation.definition.string.begin.php'

0 commit comments

Comments
 (0)