mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 08:34:19 +01:00
Highlight the EXPLAIN keyword
This commit is contained in:
@@ -11,7 +11,7 @@ variables:
|
||||
simple_identifier_break: (?!\w)
|
||||
|
||||
toplevel_reserved: |-
|
||||
(?xi: alter | analyze | create | cross | delete | drop | from | grant | group | inner | insert | join
|
||||
(?xi: alter | analyze | create | cross | delete | drop | explain | from | grant | group | inner | insert | join
|
||||
| left | on | order | outer | right | select | set | truncate | union
|
||||
| update | where )
|
||||
additional_toplevel_reserved: (?!)
|
||||
@@ -75,6 +75,7 @@ contexts:
|
||||
- include: dml-statements
|
||||
- include: grant-statements
|
||||
- include: revoke-statements
|
||||
- include: explain-statements
|
||||
- include: analyze-statements
|
||||
- include: other-statements
|
||||
|
||||
@@ -561,6 +562,12 @@ contexts:
|
||||
- meta_scope: meta.statement.revoke.sql
|
||||
- include: immediately-pop
|
||||
|
||||
###[ EXPLAIN STATEMENTS ]######################################################
|
||||
|
||||
explain-statements:
|
||||
- match: \b(?i:explain)\b
|
||||
scope: keyword.other.ddl.sql
|
||||
|
||||
###[ ANALYZE STATEMENTS ]######################################################
|
||||
|
||||
analyze-statements:
|
||||
|
||||
Reference in New Issue
Block a user