aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDerek Stride <derek.stride@shopify.com>2024-12-30 05:14:03 -0500
committerGitHub <noreply@github.com>2024-12-30 11:14:03 +0100
commita295ba13d27684e8904e8e51876b84ee85135cf1 (patch)
tree84ea173d1fc07edf42ec9495ca8beeeaf4d7c451 /tests
parentbot(lockfile): update editorconfig, nu, sql, templ, vento, vhdl, xresources (diff)
downloadnvim-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 'tests')
-rw-r--r--tests/query/injections/ruby/test-ruby-debugger.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/query/injections/ruby/test-ruby-debugger.rb b/tests/query/injections/ruby/test-ruby-debugger.rb
new file mode 100644
index 000000000..1dd8632c3
--- /dev/null
+++ b/tests/query/injections/ruby/test-ruby-debugger.rb
@@ -0,0 +1,11 @@
+binding.b(do: "puts 'Hello, world!'")
+# ^ @ruby
+
+binding.b(pre: "pp [1, 2, 3]")
+# ^ @ruby
+
+binding.break(do: "puts 'Hello, world!'")
+# ^ @ruby
+
+binding.break(pre: "pp [1, 2, 3]")
+# ^ @ruby