Skip to content

Commit

Permalink
Merge pull request #235 from alyst/embedded_sql
Browse files Browse the repository at this point in the history
Support embedded SQL
  • Loading branch information
pfitzseb authored Jan 25, 2021
2 parents 7ea6149 + a85afe5 commit 01885aa
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions grammars/julia.cson
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,42 @@ repository:
"0":
name: "punctuation.definition.string.end.julia"
}
{
begin: '(sql)(""")'
beginCaptures:
'1':
name: 'support.function.macro.julia'
'2':
name: 'punctuation.definition.string.begin.julia'
end: '"""'
endCaptures:
'0':
name: 'punctuation.definition.string.end.julia'
name: 'embed.sql.julia'
contentName: 'meta.embedded.inline.sql'
patterns: [
{ include: 'source.sql' },
{ include: '#string_dollar_sign_interpolate' }
]
}
{
begin: '(sql)(")'
beginCaptures:
'1':
name: 'support.function.macro.julia'
'2':
name: 'punctuation.definition.string.begin.julia'
end: '"'
endCaptures:
'0':
name: 'punctuation.definition.string.end.julia'
name: 'embed.sql.julia'
contentName: 'meta.embedded.inline.sql'
patterns: [
{ include: 'source.sql' },
{ include: '#string_dollar_sign_interpolate' }
]
}
{
begin: "var\"\"\""
end: "\"\"\""
Expand Down

0 comments on commit 01885aa

Please sign in to comment.