diff options
| author | Derek Stride <derek.stride@shopify.com> | 2024-12-30 05:14:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-30 11:14:03 +0100 |
| commit | a295ba13d27684e8904e8e51876b84ee85135cf1 (patch) | |
| tree | 84ea173d1fc07edf42ec9495ca8beeeaf4d7c451 /queries/ruby | |
| parent | bot(lockfile): update editorconfig, nu, sql, templ, vento, vhdl, xresources (diff) | |
| download | nvim-treesitter-a295ba13d27684e8904e8e51876b84ee85135cf1.tar nvim-treesitter-a295ba13d27684e8904e8e51876b84ee85135cf1.tar.gz nvim-treesitter-a295ba13d27684e8904e8e51876b84ee85135cf1.tar.bz2 nvim-treesitter-a295ba13d27684e8904e8e51876b84ee85135cf1.tar.lz nvim-treesitter-a295ba13d27684e8904e8e51876b84ee85135cf1.tar.xz nvim-treesitter-a295ba13d27684e8904e8e51876b84ee85135cf1.tar.zst nvim-treesitter-a295ba13d27684e8904e8e51876b84ee85135cf1.zip | |
feat(ruby): add injection for debugger command strings (#7480)
Diffstat (limited to 'queries/ruby')
| -rw-r--r-- | queries/ruby/injections.scm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/queries/ruby/injections.scm b/queries/ruby/injections.scm index 7d8be5b23..12b2c32a5 100644 --- a/queries/ruby/injections.scm +++ b/queries/ruby/injections.scm @@ -9,3 +9,15 @@ (regex (string_content) @injection.content (#set! injection.language "regex")) + +((call + receiver: (identifier) @_receiver + method: (identifier) @_method + arguments: (argument_list + (pair + key: (hash_key_symbol) + value: (string + (string_content) @injection.content)))) + (#eq? @_receiver "binding") + (#any-of? @_method "b" "break") + (#set! injection.self)) |
