Skip to content

Conversation

@waratuman
Copy link

Previously using a heredoc in a function would result in the rest of the
line after a heredoc assumed as being part of the string and would be
makred as part of the heredoc, but the heredoc doesn't start until the next
line.

eg. exec_sql(<<SQL, 1, 'book')
SELECT * FROM products WHERE id = ? OR name = ?;
SQL

This commit marks the heredoc declarations and the heredoc as part of
the heredoc, but leaves the rest of the line marked as ruby.

Also adding support heredocs with backticks.

Previously using a heredoc in a function would result in the rest of the
line after a heredoc assumed as being part of the string and would be
makred as part of the heredoc, but the heredoc doesn't start until the next
line.

  eg.  exec_sql(<<SQL, 1, 'book')
    SELECT * FROM products WHERE id = ? OR name = ?;
  SQL

This commit marks the heredoc declarations and the heredoc as part of
the heredoc, but leaves the rest of the line marked as ruby.

Also adding support heredocs with backticks.
Adding support for here docs that use the double chevrons '<<' in
argument lists.

eg. puts "hi", <<DOC
hello world
DOC
@waratuman
Copy link
Author

Also addresses #73

* upstream/master:
  Use updated documentation command on 10.10
  Add keyword `fail` to grammar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant