-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SQL] move heuristics for SQL inside Python and PHP strings to common…
… syntax
- Loading branch information
Keith Hall
committed
Jan 9, 2025
1 parent
f615fed
commit ba0b670
Showing
3 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
%YAML 1.2 | ||
--- | ||
# See http://www.sublimetext.com/docs/syntax.html | ||
scope: source.sql.string | ||
version: 2 | ||
hidden: true | ||
variables: | ||
sql_indicator: |- | ||
(?x: \s* (?: | ||
# dml statements | ||
SELECT | INSERT | REPLACE | DELETE | TRUNCATE | UPDATE | MERGE\s+INTO | ||
# ddl statements | ||
| ADD | ALTER | CREATE | DROP | ||
# conditional | ||
| IF \s+ (?: NOT \s+ )? EXISTS | ||
# declaration | ||
| DECLARE | WITH | BEGIN | ||
) \s ) | ||
contexts: | ||
main: | ||
- meta_append: true |