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

Commit 089613d

Browse files
Update php.cson to detect SQL CTEs (#427)
SQL "common table expressions" (CTE) begin with the `WITH` keyword. More info: https://docs.microsoft.com/en-us/sql/t-sql/queries/with-common-table-expression-transact-sql?view=sql-server-ver15#examples
1 parent 3a14af5 commit 089613d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammars/php.cson

+2-2
Original file line numberDiff line numberDiff line change
@@ -2697,7 +2697,7 @@
26972697
'match': '\\\\(?:\\\\(?:\\\\[\\\\\']?|[^\'])|.)'
26982698
'name': 'constant.character.escape.php'
26992699
'sql-string-double-quoted':
2700-
'begin': '"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\b)'
2700+
'begin': '"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\b)'
27012701
'beginCaptures':
27022702
'0':
27032703
'name': 'punctuation.definition.string.begin.php'
@@ -2766,7 +2766,7 @@
27662766
}
27672767
]
27682768
'sql-string-single-quoted':
2769-
'begin': '\'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\b)'
2769+
'begin': '\'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\b)'
27702770
'beginCaptures':
27712771
'0':
27722772
'name': 'punctuation.definition.string.begin.php'

0 commit comments

Comments
 (0)