Skip to content

Commit

Permalink
highlighting rules should still know about url parts when in sql state (
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens authored and cjcenizal committed Jan 17, 2020
1 parent fa2ca4b commit 4206e61
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export function InputHighlightRules() {
addEOL(['url.amp'], /(&)/, 'start')
),
'url-sql': mergeTokens(
addEOL(['url.part'], /([^?\/,\s]+)/, 'start-sql'),
addEOL(['url.comma'], /(,)/, 'start-sql'),
addEOL(['url.slash'], /(\/)/, 'start-sql'),
addEOL(['url.questionmark'], /(\?)/, 'start-sql', 'urlParams-sql')
Expand Down

0 comments on commit 4206e61

Please sign in to comment.